I have an activity that has buttons and images that can appear and disappear depending on user interactions.
What I am finding is that objects at the back, which hav
You should use:
object.setVisibility(View.GONE);
View.GONE removes your view completely from the layout, but View.INVISIBLE only makes your view invisible but still found in your layout, thus clickable.
View.GONE
View.INVISIBLE