I\'ve got the following LinearLayout...
Change invisible by gone that will do the trick.
invisible
gone
public static final int View.INVISIBLE This view is invisible, but it still takes up space for layout purposes. Use with setVisibility(int).
public static final int View.INVISIBLE
This view is invisible, but it still takes up space for layout purposes. Use with setVisibility(int).
See View.GONE and View.INVISIBLE