I’ve got the following LinearLayout…
<LinearLayout android:id="@+id/linearLayout3" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/S"></TextView>
<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/b"></TextView>
<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/Ar"></TextView>
</LinearLayout>
I’ve set the visibly to invisible but the LinearLayout still takes up space causing padding between two other linearlayouts in the layout, why? How do I make it take up no space?
Because you have to set the visibility to
goneif you want that the view takes no space.