1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2019 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<LinearLayout 18 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/listPreferredItemHeightSmall" 22 android:gravity="center_vertical" 23 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 24 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 25 android:clickable="false" 26 android:orientation="horizontal"> 27 28 <include layout="@layout/settingslib_icon_frame"/> 29 30 <LinearLayout 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 android:orientation="vertical" 34 android:paddingTop="16dp"> 35 36 <LinearLayout 37 android:layout_width="match_parent" 38 android:layout_height="wrap_content"> 39 <TextView 40 android:id="@android:id/title" 41 android:layout_width="0dp" 42 android:layout_height="wrap_content" 43 android:layout_weight="1" 44 android:singleLine="true" 45 android:textAppearance="?android:attr/textAppearanceListItem" 46 android:textColor="?android:attr/textColorPrimary" 47 android:ellipsize="marquee" 48 android:fadingEdge="horizontal"/> 49 <LinearLayout 50 android:id="@android:id/widget_frame" 51 android:layout_width="wrap_content" 52 android:layout_height="match_parent" 53 android:gravity="center_vertical" 54 android:orientation="vertical"/> 55 </LinearLayout> 56 57 <LinearLayout 58 android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:layoutDirection="ltr" 61 android:orientation="vertical"> 62 63 <com.android.settings.accessibility.BalanceSeekBar 64 android:id="@*android:id/seekbar" 65 android:minHeight="?android:attr/listPreferredItemHeightSmall" 66 android:paddingStart="0dp" 67 android:paddingEnd="12dp" 68 android:layout_gravity="center_vertical" 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content"/> 71 72 <LinearLayout 73 android:layout_width="match_parent" 74 android:layout_height="wrap_content" 75 android:layout_gravity="center_vertical" 76 android:orientation="horizontal"> 77 <TextView 78 android:id="@+id/left_text" 79 android:text="@string/accessibility_toggle_primary_balance_left_label" 80 android:textAppearance="?android:attr/textAppearanceSmall" 81 android:textColor="?android:attr/textColorSecondary" 82 android:layout_width="wrap_content" 83 android:layout_height="wrap_content" 84 android:layout_weight="1" 85 android:maxLines="1" 86 android:textAlignment="viewStart" /> 87 <TextView 88 android:id="@+id/right_text" 89 android:text="@string/accessibility_toggle_primary_balance_right_label" 90 android:textAppearance="?android:attr/textAppearanceSmall" 91 android:textColor="?android:attr/textColorSecondary" 92 android:layout_width="wrap_content" 93 android:layout_height="wrap_content" 94 android:layout_weight="1" 95 android:maxLines="1" 96 android:textAlignment="viewEnd" /> 97 98 </LinearLayout> 99 </LinearLayout> 100 </LinearLayout> 101 102</LinearLayout> 103