summaryrefslogtreecommitdiffstats
path: root/samples/Support7Demos/res/layout/selectable_item.xml
blob: 3cab6fb0c7ca0576f724d46d50db3f055d60bafb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:orientation="horizontal"
              android:onClick="itemClicked"
              android:layout_width="match_parent"
              android:layout_height="match_parent">

    <CheckBox
            android:id="@+id/selected"
            android:onClick="checkboxClicked"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>

    <LinearLayout
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">
        <TextView
                android:id="@+id/text"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"/>

        <TextView
                android:id="@+id/expandedText"
                android:visibility="gone"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"/>
    </LinearLayout>

</LinearLayout>