Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MainActivity extends AppCompatActivity{
- ImageView clickAuthor;
- TextView history;
- Button hidehistory;
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- clickAuthor =(ImageView)findViewById(R.id.imageViewInventor);
- history = (TextView) findViewById(R.id.textViewHistory);
- hidehistory = (Button) findViewById(R.id.buttonHideHistory);
- clickAuthor.setOnClickListener(new ImageView.OnClickListener(){
- public void onClick(View v){
- history.setVisibility(View.VISIBLE);
- hidehistory.setVisibility(View.VISIBLE);
- lowertextfield.setVisibility(View.INVISIBLE);
- }});
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement