title: Change EditText Visibility To Hidden
body: <p>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?</p>
  
  <p>This is my code:</p>
  
  <pre><code>public void onClick(View view) {
          if(((Button)findViewById(R.id.login)).getId() == ((Button)view).getId())
              findViewById(R.id.google_account).setVisibility(0); 
  }
  </code></pre>