blob: 30ed4de08233257ac5f3afd4a350ae13b8a615aa [file] [log] [blame]
Steve Kondik3281bd62016-09-09 23:55:11 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2013 The CyanogenMod Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18 android:layout_width="match_parent"
19 android:layout_height="match_parent"
20 android:orientation="vertical">
21
22 <LinearLayout
23 android:id="@+id/button_container"
24 android:layout_width="match_parent"
25 android:layout_height="wrap_content">
26
27 <LinearLayout
28 android:id="@+id/checkbox_container"
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
31 android:padding="10dp">
32
33 <CheckBox
34 android:id="@+id/backlight_switch"
35 android:layout_width="match_parent"
36 android:layout_height="wrap_content"
37 android:text="@string/button_backlight_enabled" />
38
39 </LinearLayout>
40
41 <RelativeLayout
42 android:id="@+id/seekbar_container"
43 android:layout_width="match_parent"
44 android:layout_height="wrap_content"
45 android:paddingTop="10dp"
46 android:paddingBottom="10dp">
47
48 <TextView
49 android:id="@+id/text"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:paddingStart="10dip"
53 android:paddingEnd="10dip"
54 android:text="@string/button_backlight_seekbar_title" />
55 <TextView android:id="@+id/value"
56 android:layout_width="wrap_content"
57 android:layout_height="wrap_content"
58 android:layout_alignParentEnd="true"
59 android:paddingStart="10dip"
60 android:paddingEnd="10dip" />
61 <SeekBar android:id="@+id/seekbar"
62 android:layout_width="match_parent"
63 android:layout_height="wrap_content"
64 android:layout_below="@id/text"
65 android:paddingTop="2dip"
66 android:paddingStart="20dip"
67 android:paddingEnd="20dip" />
68
69 </RelativeLayout>
70
71 </LinearLayout>
72
73 <RelativeLayout
74 android:id="@+id/timeout_container"
75 android:layout_width="match_parent"
76 android:layout_height="match_parent"
77 android:gravity="center_horizontal"
78 android:paddingBottom="10dp">
79
80 <TextView android:id="@+id/timeout_text"
81 android:layout_width="wrap_content"
82 android:layout_height="wrap_content"
83 android:text="@string/backlight_timeout_title"
84 android:paddingStart="10dip"
85 android:paddingEnd="10dip" />
86 <TextView android:id="@+id/timeout_value"
87 android:layout_width="wrap_content"
88 android:layout_height="wrap_content"
89 android:layout_alignParentEnd="true"
90 android:paddingStart="10dip"
91 android:paddingEnd="10dip" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -070092 <org.lineageos.lineageparts.input.BacklightTimeoutSeekBar
Steve Kondik3281bd62016-09-09 23:55:11 -070093 android:id="@+id/timeout_seekbar"
94 android:layout_width="match_parent"
95 android:layout_height="wrap_content"
96 android:layout_below="@id/timeout_text"
97 android:paddingTop="2dip"
98 android:paddingStart="20dip"
99 android:paddingEnd="20dip" />
100
101 </RelativeLayout>
102
103 <View
104 android:id="@+id/button_keyboard_divider"
105 android:layout_width="match_parent"
106 android:layout_height="2dip"
107 android:layout_marginStart="10dip"
108 android:layout_marginEnd="10dip"
109 android:layout_marginTop="5dip"
110 android:layout_marginBottom="5dip"
111 android:background="@android:drawable/divider_horizontal_dark" />
112
113 <LinearLayout
114 android:id="@+id/keyboard_container"
115 android:layout_width="match_parent"
116 android:layout_height="wrap_content">
117
118 <LinearLayout
119 android:id="@+id/checkbox_container"
120 android:layout_width="match_parent"
121 android:layout_height="wrap_content"
122 android:padding="10dp">
123
124 <CheckBox
125 android:id="@+id/backlight_switch"
126 android:layout_width="match_parent"
127 android:layout_height="wrap_content"
128 android:text="@string/keyboard_backlight_enabled" />
129
130 </LinearLayout>
131
132 <RelativeLayout
133 android:id="@+id/seekbar_container"
134 android:layout_width="match_parent"
135 android:layout_height="wrap_content"
136 android:paddingTop="10dp"
137 android:paddingBottom="10dp">
138
139 <TextView
140 android:id="@+id/text"
141 android:layout_width="wrap_content"
142 android:layout_height="wrap_content"
143 android:paddingStart="10dip"
144 android:paddingEnd="10dip"
145 android:text="@string/keyboard_backlight_seekbar_title" />
146 <TextView android:id="@+id/value"
147 android:layout_width="wrap_content"
148 android:layout_height="wrap_content"
149 android:layout_alignParentEnd="true"
150 android:paddingStart="10dip"
151 android:paddingEnd="10dip" />
152 <SeekBar android:id="@+id/seekbar"
153 android:layout_width="match_parent"
154 android:layout_height="wrap_content"
155 android:layout_below="@id/text"
156 android:paddingTop="2dip"
157 android:paddingStart="20dip"
158 android:paddingEnd="20dip" />
159
160 </RelativeLayout>
161
162 </LinearLayout>
163
164</LinearLayout>