android studio visibility

Solutions on MaxInterview for android studio visibility by the best coders in the world

showing results for - "android studio visibility"
Dina
12 Aug 2017
1//An ImageButton for example:
2ImageButton btn = findViewById(R.id.viewID);
3
4btn.setVisibility(View.INVISIBLE); // or...
5btn.setVisibility(View.GONE); // or...
6btn.setVisibility(View.VISIBLE);