Computer scienceMobileAndroidUser InterfaceUI componentsContainers

Grids and tables

Space distribution

Report a typo

In this part of the GridLayout contents, the first view's column must occupy ⅓ of available space, and the second one must take up the rest.

<TextView
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_columnWeight="1" />

<TextView
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_columnWeight="?" />

Fill in the missing value.

Enter a number
___

Create a free account to access the full topic