I’ll introduce what I learned about the difference between View.INVISIBLE and View.GONE in Android app development.
INVISIBLE
- Makes the view invisible
- However, space is still reserved in the layout
- The space for the hidden view is not collapsed
GONE
- Makes the view invisible
- And does not reserve space in the layout
- The space for the hidden view is collapsed
That’s all from the Gemba, where we want to know the difference between View.INVISIBLE and View.GONE.
Reference Information