OSDN Git Service

Add color temperature preference to Night Display
[android-x86/packages-apps-Settings.git] / res / layout / preference_widget_seekbar_settings.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2016 The Android Open Source Project
3
4      Licensed under the Apache License, Version 2.0 (the "License");
5      you may not use this file except in compliance with the License.
6      You may obtain a copy of the License at
7
8           http://www.apache.org/licenses/LICENSE-2.0
9
10      Unless required by applicable law or agreed to in writing, software
11      distributed under the License is distributed on an "AS IS" BASIS,
12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13      See the License for the specific language governing permissions and
14      limitations under the License.
15 -->
16
17 <!-- Layout used by SeekBarPreference for the seekbar widget style. -->
18 <RelativeLayout
19     xmlns:android="http://schemas.android.com/apk/res/android"
20     android:layout_width="match_parent"
21     android:layout_height="wrap_content"
22     android:minHeight="?android:attr/listPreferredItemHeight"
23     android:gravity="center_vertical"
24     android:paddingStart="?android:attr/listPreferredItemPaddingStart"
25     android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
26     android:paddingBottom="6dp"
27     android:paddingTop="6dp">
28
29     <TextView
30         android:id="@android:id/title"
31         android:layout_width="wrap_content"
32         android:layout_height="wrap_content"
33         android:layout_marginStart="60dp"
34         android:layout_marginEnd="8dp"
35         android:singleLine="true"
36         android:textAppearance="@android:style/TextAppearance.Material.Subhead"
37         android:textColor="?android:attr/textColorPrimary"
38         android:ellipsize="marquee"
39         android:fadingEdge="horizontal" />
40
41     <TextView
42         android:id="@android:id/summary"
43         android:layout_width="wrap_content"
44         android:layout_height="wrap_content"
45         android:layout_marginStart="60dp"
46         android:layout_marginEnd="8dp"
47         android:layout_below="@android:id/title"
48         android:layout_alignStart="@android:id/title"
49         android:textAppearance="?android:attr/textAppearanceListItemSecondary"
50         android:textColor="?android:attr/textColorSecondary"
51         android:maxLines="4" />
52
53     <com.android.settings.widget.DefaultIndicatorSeekBar
54         android:id="@*android:id/seekbar"
55         style="@android:style/Widget.Material.SeekBar.Discrete"
56         android:layout_width="match_parent"
57         android:layout_height="48dp"
58         android:layout_alignParentEnd="true"
59         android:layout_below="@android:id/summary"
60         android:layout_marginEnd="8dp"
61         android:layout_marginStart="44dp" />
62
63 </RelativeLayout>