summaryrefslogtreecommitdiffstats
path: root/mobile/android/base/resources/layout/site_setting_item.xml
blob: a8feba7e3e46d3724b3d69f047e6ad9f2f3955c4 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="utf-8"?>

<org.mozilla.gecko.widget.CheckableLinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:gravity="center_vertical"
    android:paddingLeft="16dip"
    android:paddingRight="12dip"
    android:minHeight="?android:attr/listPreferredItemHeight"
    android:focusable="false">

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:orientation="vertical"
        android:gravity="center_vertical"
        android:focusable="false">

        <TextView
            android:id="@+id/setting"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceMedium"
            style="Widget.ListItem"
            android:gravity="center_vertical|left"
            android:singleLine="true"
            android:ellipsize="marquee"/>

        <TextView
            android:id="@+id/value"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceSmall"
            style="Widget.ListItem"
            android:gravity="center_vertical|left"
            android:singleLine="true"
            android:ellipsize="marquee"/>

    </LinearLayout>

    <android.support.v7.widget.AppCompatCheckBox
        android:id="@+id/checkbox"
        android:layout_width="35dip"
        android:layout_height="wrap_content"
        android:paddingRight="12dip"
        android:gravity="center_vertical"
        android:focusable="false"
        android:clickable="false"/>

</org.mozilla.gecko.widget.CheckableLinearLayout>