forked from sspanak/tt9
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpref_switch.xml
41 lines (37 loc) · 1.4 KB
/
pref_switch.xml
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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="3"
android:gravity="start|center_vertical"
android:orientation="vertical"
android:paddingStart="@dimen/pref_padding_horizontal"
android:paddingTop="@dimen/pref_padding_vertical"
android:paddingEnd="4dp"
android:paddingBottom="@dimen/pref_padding_vertical">
<TextView
android:id="@android:id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Widget.TextView"
android:textSize="@dimen/pref_text_size" />
<TextView
android:id="@android:id/summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.AppCompat.Caption"
android:textSize="@dimen/pref_summary_size" />
</LinearLayout>
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/switchWidget"
android:layout_width="0px"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="end|center_vertical"
android:paddingStart="2dp"
android:paddingEnd="@dimen/pref_padding_horizontal" />
</LinearLayout>