Computer scienceMobileAndroidUser InterfaceUI componentsContainers

LinearLayout in Action

Spaces

Report a typo

Given the following drawable/vspace_16.xml file:

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <size android:height="16dp" />
</shape>

Fill in the missing line to add spaces between LinearLayout children:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    ______________________________
    android:showDividers="middle">

    <!-- some views here -->

</LinearLayout>
Enter a short text
___

Create a free account to access the full topic