 <p>Try this <code>findViewById(R.id.google_account).setVisibility(View.GONE);</code> And here is the full <a href="http://developer.android.com/reference/android/view/View.html#GONE" rel="nofollow">documentation</a>.</p>