Also you can use LinearLayout.INVISIBLE.
The difference is (Android Documentation):
View.GONE - This view is invisible, and it doesn't take any space for
layout purposes.
View.INVISIBLE This view is invisible, but it still takes up space for
layout purposes.
You can choose anyone based upon your design.