Santiago Etchebehere | 273f655 | 2019-01-04 17:33:45 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2019 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Wesley.CW Wang | 09dbae3 | 2020-07-07 17:31:51 +0800 | [diff] [blame] | 18 | android:layout_width="match_parent" |
Santiago Etchebehere | dcc9bfb | 2019-04-26 12:10:27 -0700 | [diff] [blame] | 19 | android:layout_height="wrap_content" |
Wesley.CW Wang | d954abf | 2020-05-13 17:33:43 +0800 | [diff] [blame] | 20 | android:paddingHorizontal="@dimen/option_padding_horizontal" |
Santiago Etchebehere | dcc9bfb | 2019-04-26 12:10:27 -0700 | [diff] [blame] | 21 | android:paddingBottom="@dimen/option_bottom_margin" |
Santiago Etchebehere | f039b69 | 2019-06-05 14:29:25 -0700 | [diff] [blame] | 22 | android:clipChildren="false" |
| 23 | android:clipToPadding="false" |
Santiago Etchebehere | 273f655 | 2019-01-04 17:33:45 -0800 | [diff] [blame] | 24 | android:orientation="vertical"> |
| 25 | |
| 26 | <TextView |
| 27 | android:id="@+id/option_label" |
Santiago Etchebehere | 78acbb6 | 2019-02-19 15:36:23 -0800 | [diff] [blame] | 28 | android:layout_width="@dimen/option_tile_width" |
Santiago Etchebehere | 273f655 | 2019-01-04 17:33:45 -0800 | [diff] [blame] | 29 | android:layout_height="wrap_content" |
| 30 | android:layout_gravity="center_horizontal" |
| 31 | android:layout_marginBottom="@dimen/theme_option_label_margin" |
Santiago Etchebehere | 78acbb6 | 2019-02-19 15:36:23 -0800 | [diff] [blame] | 32 | android:ellipsize="end" |
| 33 | android:gravity="center_horizontal" |
| 34 | android:maxLines="1" |
Santiago Etchebehere | 273f655 | 2019-01-04 17:33:45 -0800 | [diff] [blame] | 35 | android:textAppearance="@style/OptionTitleTextAppearance"/> |
| 36 | <RelativeLayout |
| 37 | android:id="@+id/option_tile" |
| 38 | android:layout_width="@dimen/option_tile_width" |
| 39 | android:layout_height="@dimen/option_tile_width" |
| 40 | android:layout_gravity="center_horizontal" |
| 41 | android:paddingHorizontal="@dimen/option_tile_padding_horizontal" |
| 42 | android:paddingVertical="@dimen/option_tile_padding_vertical" |
| 43 | android:background="@drawable/option_border"> |
Santiago Etchebehere | 273f655 | 2019-01-04 17:33:45 -0800 | [diff] [blame] | 44 | <ImageView |
| 45 | android:id="@+id/theme_option_icon" |
Santiago Etchebehere | b91d346 | 2019-03-14 14:08:49 -0700 | [diff] [blame] | 46 | android:layout_width="@dimen/theme_option_icon_sample_width" |
| 47 | android:layout_height="@dimen/theme_option_icon_sample_height" |
| 48 | android:layout_alignParentTop="true" |
Chihhang Chuang | 07bfdd5 | 2020-06-17 19:03:22 +0800 | [diff] [blame] | 49 | android:layout_alignParentStart="true" |
Santiago Etchebehere | 60c3f2f | 2019-05-22 14:38:19 -0700 | [diff] [blame] | 50 | android:tint="?android:colorForeground"/> |
Santiago Etchebehere | b91d346 | 2019-03-14 14:08:49 -0700 | [diff] [blame] | 51 | <ImageView |
| 52 | android:id="@+id/theme_option_shape" |
| 53 | android:layout_width="@dimen/theme_option_shape_sample_width" |
| 54 | android:layout_height="@dimen/theme_option_shape_sample_height" |
Santiago Etchebehere | b91d346 | 2019-03-14 14:08:49 -0700 | [diff] [blame] | 55 | android:layout_alignBottom="@+id/theme_option_icon" |
Wesley.CW Wang | d954abf | 2020-05-13 17:33:43 +0800 | [diff] [blame] | 56 | android:layout_toEndOf="@id/theme_option_icon" |
Chihhang Chuang | 07bfdd5 | 2020-06-17 19:03:22 +0800 | [diff] [blame] | 57 | android:layout_marginStart="@dimen/theme_option_sample_margin"/> |
Santiago Etchebehere | b91d346 | 2019-03-14 14:08:49 -0700 | [diff] [blame] | 58 | <TextView |
| 59 | android:id="@+id/theme_option_font" |
| 60 | android:layout_width="@dimen/theme_option_font_sample_width" |
| 61 | android:layout_height="@dimen/theme_option_font_sample_height" |
Wesley.CW Wang | d954abf | 2020-05-13 17:33:43 +0800 | [diff] [blame] | 62 | android:layout_gravity="center" |
| 63 | android:layout_below="@id/theme_option_icon" |
| 64 | android:layout_marginTop="@dimen/option_bottom_margin" |
Santiago Etchebehere | 5e022e1 | 2019-10-31 13:44:31 -0700 | [diff] [blame] | 65 | android:autoSizeMaxTextSize="@dimen/theme_option_font_text_size" |
| 66 | android:autoSizeMinTextSize="@dimen/theme_option_font_min_text_size" |
| 67 | android:autoSizeTextType="uniform" |
Santiago Etchebehere | b91d346 | 2019-03-14 14:08:49 -0700 | [diff] [blame] | 68 | android:gravity="center" |
Santiago Etchebehere | b91d346 | 2019-03-14 14:08:49 -0700 | [diff] [blame] | 69 | android:letterSpacing=".2" |
Santiago Etchebehere | 5e022e1 | 2019-10-31 13:44:31 -0700 | [diff] [blame] | 70 | android:text="@string/theme_font_example" |
| 71 | android:textAlignment="center" |
| 72 | android:textSize="@dimen/theme_option_font_text_size" /> |
Santiago Etchebehere | 273f655 | 2019-01-04 17:33:45 -0800 | [diff] [blame] | 73 | </RelativeLayout> |
Santiago Etchebehere | 988f99d | 2018-12-20 17:13:12 -0800 | [diff] [blame] | 74 | </LinearLayout> |