I want to change EditText visibility to hidden when a button click. I write a code, but it doesn't work. How can I do it?
This is my code:
public void onClick(View view) {
if(((Button)findViewById(R.id.login)).getId() == ((Button)view).getId())
findViewById(R.id.google_account).setVisibility(0);
}