view_stub.xml revision de38dd3ef0577d25b2d59863603abe5750d0c231
1<?xml version="1.0" encoding="utf-8"?>
2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3              android:orientation="vertical"
4              android:layout_width="match_parent"
5              android:layout_height="match_parent"
6              xmlns:bind="http://schemas.android.com/apk/res-auto">
7    <variable name="viewStubVisibility" type="int"/>
8    <variable name="firstName" type="String"/>
9    <variable name="lastName" type="String"/>
10    <TextView android:layout_width="wrap_content" android:layout_height="wrap_content"
11              android:text="@{firstName}"
12              android:id="@+id/firstName"
13            />
14    <TextView android:layout_width="wrap_content" android:layout_height="wrap_content"
15              android:text="@{lastName}"
16              android:id="@+id/lastName"
17            />
18
19    <ViewStub android:layout_width="match_parent" android:layout_height="match_parent"
20            android:id="@+id/viewStub"
21            android:visibility="@{viewStubVisibility}"
22            android:layout="@layout/view_stub_contents"
23            bind:firstName="@{firstName}"
24            bind:lastName="@{lastName}"/>
25</LinearLayout>
26