On demand inflation

Report a typo

Write the line to make layout/empty.xml appear when requested.

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

    <include
        layout="@layout/content" />

    <ViewStub
        android:id="@+id/error"
        android:layout="@layout/error" />

    <ViewStub
        android:id="@+id/empty"
        ______________________________ />

</LinearLayout>
Enter a short text
___

Create a free account to access the full topic