Sunday, November 18, 2012

Show/Hide of elements - Android

It is easy to show or hide elements in Android..

For example to hide a button,

findViewById(R.id.someButton).setVisibility(View.GONE);

And to make it visible,

findViewById(R.id.someButton).setVisibility(View.VISIBLE);


No comments:

Post a Comment