Noah Wang | e64cc26 | 2015-12-15 09:05:30 -0800 | [diff] [blame] | 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 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
Noah Wang | 49fabb9 | 2016-01-12 09:00:57 -0800 | [diff] [blame] | 18 | android:layout_width="match_parent" |
| 19 | android:layout_height="match_parent" |
| 20 | android:fillViewport="true"> |
Noah Wang | e64cc26 | 2015-12-15 09:05:30 -0800 | [diff] [blame] | 21 | |
| 22 | <LinearLayout |
| 23 | android:orientation="vertical" |
| 24 | android:layout_width="match_parent" |
Noah Wang | 35a9561 | 2016-04-15 13:49:12 -0700 | [diff] [blame] | 25 | android:layout_height="wrap_content" > |
Noah Wang | e64cc26 | 2015-12-15 09:05:30 -0800 | [diff] [blame] | 26 | |
Noah Wang | 35a9561 | 2016-04-15 13:49:12 -0700 | [diff] [blame] | 27 | <include layout="@layout/preview_seek_bar_view_pager" /> |
Noah Wang | e64cc26 | 2015-12-15 09:05:30 -0800 | [diff] [blame] | 28 | |
| 29 | <LinearLayout |
Noah Wang | 35a9561 | 2016-04-15 13:49:12 -0700 | [diff] [blame] | 30 | android:orientation="vertical" |
Noah Wang | e64cc26 | 2015-12-15 09:05:30 -0800 | [diff] [blame] | 31 | android:layout_width="match_parent" |
| 32 | android:layout_height="wrap_content" |
Noah Wang | 35a9561 | 2016-04-15 13:49:12 -0700 | [diff] [blame] | 33 | android:paddingTop="16dp" |
| 34 | android:paddingStart="?android:attr/listPreferredItemPaddingStart" |
| 35 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"> |
Noah Wang | e64cc26 | 2015-12-15 09:05:30 -0800 | [diff] [blame] | 36 | |
Noah Wang | 35a9561 | 2016-04-15 13:49:12 -0700 | [diff] [blame] | 37 | <com.android.settings.widget.DotsPageIndicator |
| 38 | android:id="@+id/page_indicator" |
| 39 | style="@style/PreviewPagerPageIndicator" |
| 40 | android:layout_width="wrap_content" |
| 41 | android:layout_height="wrap_content" |
| 42 | android:layout_gravity="center_horizontal" |
| 43 | android:padding="6dp" /> |
Noah Wang | e64cc26 | 2015-12-15 09:05:30 -0800 | [diff] [blame] | 44 | |
Noah Wang | 35a9561 | 2016-04-15 13:49:12 -0700 | [diff] [blame] | 45 | <TextView |
| 46 | android:id="@+id/current_label" |
| 47 | android:layout_width="wrap_content" |
| 48 | android:layout_height="wrap_content" |
| 49 | android:layout_gravity="center_horizontal" |
| 50 | android:padding="6dp" |
Amin Shaikh | a5e8bdd | 2018-12-19 14:42:59 -0500 | [diff] [blame] | 51 | android:textAppearance="@android:style/TextAppearance.DeviceDefault.Widget.TextView" |
Noah Wang | 35a9561 | 2016-04-15 13:49:12 -0700 | [diff] [blame] | 52 | android:elevation="2dp" /> |
Noah Wang | e64cc26 | 2015-12-15 09:05:30 -0800 | [diff] [blame] | 53 | |
Noah Wang | 35a9561 | 2016-04-15 13:49:12 -0700 | [diff] [blame] | 54 | <LinearLayout |
| 55 | android:layout_width="match_parent" |
| 56 | android:layout_height="wrap_content" |
| 57 | android:gravity="center_vertical" |
Sunny Shao | fdf6273 | 2020-05-06 19:53:03 +0800 | [diff] [blame] | 58 | android:layoutDirection="ltr" |
Noah Wang | 35a9561 | 2016-04-15 13:49:12 -0700 | [diff] [blame] | 59 | android:paddingTop="8dp"> |
| 60 | |
| 61 | <ImageView |
| 62 | android:id="@+id/smaller" |
| 63 | android:layout_width="48dp" |
| 64 | android:layout_height="48dp" |
| 65 | android:background="?android:attr/selectableItemBackgroundBorderless" |
| 66 | android:src="@drawable/ic_font_size_16dp" |
| 67 | android:tint="?android:attr/textColorPrimary" |
| 68 | android:tintMode="src_in" |
| 69 | android:scaleType="center" |
| 70 | android:focusable="true" |
| 71 | android:contentDescription="@string/font_size_make_smaller_desc" /> |
| 72 | |
| 73 | <com.android.settings.widget.LabeledSeekBar |
| 74 | android:id="@+id/seek_bar" |
| 75 | android:layout_width="0dp" |
| 76 | android:layout_height="48dp" |
| 77 | android:layout_weight="1" |
| 78 | style="@android:style/Widget.Material.SeekBar.Discrete"/> |
| 79 | |
| 80 | <ImageView |
| 81 | android:id="@+id/larger" |
| 82 | android:layout_width="48dp" |
| 83 | android:layout_height="48dp" |
| 84 | android:background="?android:attr/selectableItemBackgroundBorderless" |
| 85 | android:src="@drawable/ic_font_size_24dp" |
| 86 | android:tint="?android:attr/textColorPrimary" |
| 87 | android:tintMode="src_in" |
| 88 | android:scaleType="center" |
| 89 | android:focusable="true" |
| 90 | android:contentDescription="@string/font_size_make_larger_desc" /> |
| 91 | </LinearLayout> |
| 92 | |
| 93 | <TextView |
| 94 | android:layout_width="wrap_content" |
| 95 | android:layout_height="wrap_content" |
| 96 | android:text="@string/font_size_summary" |
| 97 | android:layout_marginBottom="16dp" |
Amin Shaikh | a5e8bdd | 2018-12-19 14:42:59 -0500 | [diff] [blame] | 98 | android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead" /> |
Noah Wang | e64cc26 | 2015-12-15 09:05:30 -0800 | [diff] [blame] | 99 | </LinearLayout> |
Noah Wang | e64cc26 | 2015-12-15 09:05:30 -0800 | [diff] [blame] | 100 | </LinearLayout> |
| 101 | </ScrollView> |