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:hyphenationFrequency="normalFast" 49 android:lineBreakWordStyle="phrase" 50 android:fadingEdge="horizontal"/> 51 <LinearLayout 52 android:id="@android:id/widget_frame" 53 android:layout_width="wrap_content" 54 android:layout_height="match_parent" 55 android:gravity="center_vertical" 56 android:orientation="vertical"/> 57 </LinearLayout> 58 59 <LinearLayout 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:layoutDirection="ltr" 63 android:orientation="vertical"> 64 65 <com.android.settings.accessibility.BalanceSeekBar 66 android:id="@*android:id/seekbar" 67 android:minHeight="?android:attr/listPreferredItemHeightSmall" 68 android:paddingStart="0dp" 69 android:paddingEnd="0dp" 70 android:layout_gravity="center_vertical" 71 android:layout_width="match_parent" 72 android:layout_height="wrap_content"/> 73 74 <LinearLayout 75 android:layout_width="match_parent" 76 android:layout_height="wrap_content" 77 android:layout_gravity="center_vertical" 78 android:orientation="horizontal"> 79 <TextView 80 android:id="@+id/left_text" 81 android:text="@string/accessibility_toggle_primary_balance_left_label" 82 android:textAppearance="?android:attr/textAppearanceSmall" 83 android:textColor="?android:attr/textColorSecondary" 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:layout_weight="1" 87 android:maxLines="1" 88 android:textAlignment="viewStart" /> 89 <TextView 90 android:id="@+id/right_text" 91 android:text="@string/accessibility_toggle_primary_balance_right_label" 92 android:textAppearance="?android:attr/textAppearanceSmall" 93 android:textColor="?android:attr/textColorSecondary" 94 android:layout_width="wrap_content" 95 android:layout_height="wrap_content" 96 android:layout_weight="1" 97 android:maxLines="1" 98 android:textAlignment="viewEnd" /> 99 100 </LinearLayout> 101 </LinearLayout> 102 </LinearLayout> 103 104</LinearLayout> 105