1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2015 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 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:orientation="horizontal"> 21 22 <LinearLayout 23 android:orientation="vertical" 24 android:layout_width="0dp" 25 android:layout_weight="1" 26 android:layout_height="match_parent"> 27 28 <include layout="@layout/preview_seek_bar_view_pager" /> 29 30 <com.android.settings.widget.DotsPageIndicator 31 android:id="@+id/page_indicator" 32 style="@style/PreviewPagerPageIndicator" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:layout_gravity="center_horizontal" 36 android:padding="6dp" /> 37 </LinearLayout> 38 39 <ScrollView 40 android:layout_width="0dp" 41 android:layout_weight="1" 42 android:layout_height="match_parent" 43 android:fillViewport="true"> 44 45 <LinearLayout 46 android:orientation="vertical" 47 android:layout_width="match_parent" 48 android:layout_height="wrap_content" 49 android:paddingTop="16dp" 50 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 51 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"> 52 53 <TextView 54 android:id="@+id/current_label" 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 android:layout_gravity="center_horizontal" 58 android:padding="6dp" 59 android:textAppearance="@android:style/TextAppearance.Material.Widget.TextView" 60 android:elevation="2dp" /> 61 62 <com.android.settings.widget.LabeledSeekBar 63 android:id="@+id/seek_bar" 64 android:layout_width="match_parent" 65 android:layout_height="48dp" 66 style="@android:style/Widget.Material.SeekBar.Discrete" /> 67 68 <RelativeLayout 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:gravity="center_vertical"> 72 73 <ImageView 74 android:id="@+id/smaller" 75 android:layout_width="48dp" 76 android:layout_height="48dp" 77 android:layout_alignParentStart="true" 78 android:background="?android:attr/selectableItemBackgroundBorderless" 79 android:src="@drawable/ic_font_size_16dp" 80 android:tint="?android:attr/textColorPrimary" 81 android:tintMode="src_in" 82 android:scaleType="center" 83 android:focusable="true" 84 android:contentDescription="@string/font_size_make_smaller_desc" /> 85 86 <ImageView 87 android:id="@+id/larger" 88 android:layout_width="48dp" 89 android:layout_height="48dp" 90 android:layout_alignParentEnd="true" 91 android:background="?android:attr/selectableItemBackgroundBorderless" 92 android:src="@drawable/ic_font_size_24dp" 93 android:tint="?android:attr/textColorPrimary" 94 android:tintMode="src_in" 95 android:scaleType="center" 96 android:focusable="true" 97 android:contentDescription="@string/font_size_make_larger_desc" /> 98 </RelativeLayout> 99 100 <TextView 101 android:layout_width="wrap_content" 102 android:layout_height="wrap_content" 103 android:text="@string/font_size_summary" 104 android:layout_marginBottom="16dp" 105 android:textAppearance="@android:style/TextAppearance.Material.Subhead" /> 106 </LinearLayout> 107 </ScrollView> 108 </LinearLayout> 109