Computer scienceMobileAndroidUser InterfaceUI componentsContainers

LinearLayout in Action

Wide layout

Report a typo

LinearLayout width may exceed screen width. Which parent layout do you need in this case?

<____________________
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <!-- many views here -->

    </LinearLayout>

</____________________>
Enter a short text
___

Create a free account to access the full topic