command_button_grid_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    <LinearLayout
 5        android:layout_width="fill_parent"
 6        android:layout_height="wrap_content"
 7        android:paddingBottom="16dp"
 8        android:orientation="vertical">
 9
10        <TextView
11            android:id="@+id/label"
12            android:layout_width="match_parent"
13            android:layout_height="wrap_content"
14            android:paddingLeft="13dp"
15            android:paddingRight="8dp"
16            android:paddingBottom="8dp"
17            android:gravity="center"
18            android:textAppearance="@style/TextAppearance.Conversations.Subhead"
19            android:textColor="?attr/edit_text_color" />
20
21        <TextView
22            android:id="@+id/desc"
23            android:layout_width="match_parent"
24            android:layout_height="wrap_content"
25            android:paddingLeft="16dp"
26            android:paddingRight="8dp"
27            android:gravity="center"
28            android:textAppearance="@style/TextAppearance.Conversations.Status"
29            android:textColor="?android:textColorSecondary" />
30
31        <Button
32            android:id="@+id/default_button"
33            android:layout_width="match_parent"
34            android:layout_height="wrap_content"
35            android:layout_marginRight="40dp"
36            android:layout_marginLeft="40dp"
37            android:layout_marginBottom="24dp"
38            android:layout_marginTop="24dp"
39            android:gravity="center"
40            android:textAllCaps="false"
41            android:minHeight="75dp" />
42
43        <com.cheogram.android.GridView
44            android:id="@+id/buttons"
45            android:layout_width="fill_parent"
46            android:layout_height="wrap_content"
47            android:layout_marginTop="16dp"
48            android:layout_marginRight="16dp"
49            android:paddingLeft="16dp"
50            android:horizontalSpacing="0dp"
51            android:verticalSpacing="0dp"
52            android:gravity="center"
53            android:numColumns="auto_fit" />
54
55        <Button
56            android:id="@+id/open_button"
57            android:layout_width="match_parent"
58            android:layout_height="wrap_content"
59            android:layout_marginRight="8dp"
60            android:layout_marginLeft="8dp"
61            android:layout_marginTop="40dp"
62            android:gravity="center"
63            android:text="other / custom"
64            style="@style/Widget.Conversations.Button.Borderless" />
65
66    </LinearLayout>
67</layout>