command_checkbox_field.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<layout xmlns:android="http://schemas.android.com/apk/res/android"
 3    xmlns:app="http://schemas.android.com/apk/res-auto">
 4
 5    <RelativeLayout
 6        android:id="@+id/row"
 7        android:background="?selectableItemBackground"
 8        android:layout_width="fill_parent"
 9        android:layout_height="wrap_content"
10        android:layout_marginBottom="16dp"
11        android:minHeight="?android:attr/listPreferredItemHeightSmall">
12
13        <LinearLayout
14            android:layout_width="fill_parent"
15            android:layout_height="wrap_content"
16            android:layout_centerVertical="true"
17            android:layout_toLeftOf="@+id/checkbox"
18            android:layout_toStartOf="@+id/checkbox"
19            android:orientation="vertical">
20
21            <TextView
22                android:id="@+id/label"
23                android:layout_width="wrap_content"
24                android:layout_height="wrap_content"
25                android:paddingLeft="13dp"
26                android:scrollHorizontally="false"
27                android:textAppearance="@style/TextAppearance.Conversations.Subhead" />
28
29            <TextView
30                android:id="@+id/desc"
31                android:layout_width="wrap_content"
32                android:layout_height="wrap_content"
33                android:paddingLeft="16dp"
34                android:textAppearance="@style/TextAppearance.Conversations.Status"
35                android:textColor="?android:textColorSecondary" />
36
37        </LinearLayout>
38
39        <CheckBox
40            android:id="@+id/checkbox"
41            android:layout_width="wrap_content"
42            android:layout_height="wrap_content"
43            android:layout_alignParentRight="true"
44            android:layout_centerVertical="true"
45            android:paddingRight="16dp"
46            android:layout_marginLeft="16dp" />
47
48    </RelativeLayout>
49</layout>