Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.79 KB | None | 0 0
  1. public class MainActivity extends AppCompatActivity{
  2.     ImageView clickAuthor;
  3.     TextView history;
  4.     Button hidehistory;
  5.    
  6.     @Override
  7.     protected void onCreate(Bundle savedInstanceState) {
  8.         super.onCreate(savedInstanceState);
  9.         setContentView(R.layout.activity_main);
  10.  
  11.         clickAuthor =(ImageView)findViewById(R.id.imageViewInventor);
  12.         history = (TextView) findViewById(R.id.textViewHistory);
  13.         hidehistory = (Button) findViewById(R.id.buttonHideHistory);
  14.  
  15.         clickAuthor.setOnClickListener(new ImageView.OnClickListener(){
  16.         public void onClick(View v){                       
  17.                     history.setVisibility(View.VISIBLE);
  18.                     hidehistory.setVisibility(View.VISIBLE);
  19.                     lowertextfield.setVisibility(View.INVISIBLE);
  20.             }});
  21.         }  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement