Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / layout / preference_widget_seekbar_material.xml
blob6c72c9ed007d792c9eab2cfeda196726bc7b15f4
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2014 The Android Open Source Project
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
8           http://www.apache.org/licenses/LICENSE-2.0
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 -->
17 <!-- Layout used by SeekBarPreference for the seekbar widget style. -->
18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19     android:layout_width="match_parent"
20     android:layout_height="wrap_content"
21     android:minHeight="?android:attr/listPreferredItemHeight"
22     android:gravity="center_vertical"
23     android:paddingStart="?attr/listPreferredItemPaddingStart"
24     android:paddingEnd="?attr/listPreferredItemPaddingEnd">
26     <LinearLayout
27         android:layout_width="wrap_content"
28         android:layout_height="match_parent"
29         android:gravity="center"
30         android:minWidth="@dimen/preference_icon_minWidth"
31         android:orientation="horizontal">
32         <ImageView
33             android:id="@+android:id/icon"
34             android:layout_width="wrap_content"
35             android:layout_height="wrap_content"
36             android:layout_gravity="center"
37             android:minWidth="48dp"
38             />
39     </LinearLayout>
41     <RelativeLayout
42         android:layout_width="wrap_content"
43         android:layout_height="wrap_content"
44         android:layout_marginStart="16dip"
45         android:layout_marginEnd="8dip"
46         android:layout_marginTop="6dip"
47         android:layout_marginBottom="6dip"
48         android:layout_weight="1">
50         <TextView android:id="@+android:id/title"
51             android:layout_width="wrap_content"
52             android:layout_height="wrap_content"
53             android:singleLine="true"
54             android:textAppearance="?android:attr/textAppearanceListItem"
55             android:ellipsize="marquee"
56             android:fadingEdge="horizontal" />
58         <TextView android:id="@+android:id/summary"
59             android:layout_width="wrap_content"
60             android:layout_height="wrap_content"
61             android:layout_below="@android:id/title"
62             android:layout_alignStart="@android:id/title"
63             android:textAppearance="?android:attr/textAppearanceListItemSecondary"
64             android:textColor="?android:attr/textColorSecondary"
65             android:maxLines="4" />
67         <!-- Preference should place its actual preference widget here. -->
68         <LinearLayout android:id="@+android:id/widget_frame"
69             android:layout_width="wrap_content"
70             android:layout_height="match_parent"
71             android:layout_below="@android:id/summary"
72             android:layout_alignStart="@android:id/title"
73             android:minWidth="@dimen/preference_widget_width"
74             android:gravity="center"
75             android:orientation="vertical" />
77         <SeekBar android:id="@+android:id/seekbar"
78             android:layout_width="match_parent"
79             android:layout_height="wrap_content"
80             android:layout_below="@android:id/summary"
81             android:layout_toEndOf="@android:id/widget_frame"
82             android:layout_alignParentEnd="true" />
84     </RelativeLayout>
86 </LinearLayout>