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<LinearLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:gravity="center_vertical" 23 android:minHeight="?android:attr/listPreferredItemHeightSmall" 24 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 25 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 26 android:clickable="false" 27 android:orientation="horizontal"> 28 29 <include layout="@layout/settingslib_icon_frame"/> 30 31 <LinearLayout 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 android:orientation="vertical" 35 android:paddingTop="16dp"> 36 37 <LinearLayout 38 android:layout_width="match_parent" 39 android:layout_height="wrap_content"> 40 <TextView 41 android:id="@android:id/title" 42 android:layout_width="0dp" 43 android:layout_height="wrap_content" 44 android:layout_weight="1" 45 android:singleLine="true" 46 android:textAppearance="?android:attr/textAppearanceListItem" 47 android:textColor="?android:attr/textColorPrimary" 48 android:ellipsize="marquee" 49 android:fadingEdge="horizontal"/> 50 <!-- Preference should place its actual preference widget here. --> 51 <LinearLayout 52 android:id="@android:id/widget_frame" 53 android:layout_width="wrap_content" 54 android:layout_height="match_parent" 55 android:gravity="end|center_vertical" 56 android:paddingStart="12dp" 57 android:orientation="vertical"/> 58 </LinearLayout> 59 60 <SeekBar 61 android:id="@*android:id/seekbar" 62 android:layout_gravity="center_vertical" 63 android:layout_width="match_parent" 64 android:paddingStart="12dp" 65 android:paddingEnd="12dp" 66 android:layout_height="48dp"/> 67 </LinearLayout> 68 69</LinearLayout>