INVISIBLE vs GONE View in Android
Lot of time we have a requirement to hide the view either runtime or from xml. We have seen View.GONE and View.INVISIBLE but very few people knows difference between those two constants.
First we will see what android document says about it.
INVISIBLE
This view is invisible, but it still takes up space for layout purposes.
GONE
This view is invisible, and it doesn’t take any space for layout purposes.