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" |
| 18 | android:layout_width="wrap_content" |
Santiago Etchebehere | dcc9bfb | 2019-04-26 12:10:27 -0700 | [diff] [blame] | 19 | android:layout_height="wrap_content" |
| 20 | android:paddingRight="2dp" |
| 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" |
| 49 | android:layout_alignParentLeft="true" |
Santiago Etchebehere | 60c3f2f | 2019-05-22 14:38:19 -0700 | [diff] [blame] | 50 | android:layout_margin="@dimen/theme_option_sample_padding" |
| 51 | android:tint="?android:colorForeground"/> |
Santiago Etchebehere | b91d346 | 2019-03-14 14:08:49 -0700 | [diff] [blame] | 52 | <ImageView |
| 53 | android:id="@+id/theme_option_shape" |
| 54 | android:layout_width="@dimen/theme_option_shape_sample_width" |
| 55 | android:layout_height="@dimen/theme_option_shape_sample_height" |
Santiago Etchebehere | f18580d | 2019-01-10 10:24:42 -0800 | [diff] [blame] | 56 | android:layout_alignParentRight="true" |
Santiago Etchebehere | b91d346 | 2019-03-14 14:08:49 -0700 | [diff] [blame] | 57 | android:layout_alignBottom="@+id/theme_option_icon" |
| 58 | android:layout_marginHorizontal="@dimen/theme_option_sample_padding"/> |
| 59 | <TextView |
| 60 | android:id="@+id/theme_option_font" |
| 61 | android:layout_width="@dimen/theme_option_font_sample_width" |
| 62 | android:layout_height="@dimen/theme_option_font_sample_height" |
| 63 | android:layout_alignParentBottom="true" |
| 64 | android:layout_gravity="center_horizontal" |
| 65 | android:gravity="center" |
| 66 | android:textSize="@dimen/theme_option_font_text_size" |
| 67 | android:letterSpacing=".2" |
| 68 | android:text="@string/theme_font_example"/> |
Santiago Etchebehere | 273f655 | 2019-01-04 17:33:45 -0800 | [diff] [blame] | 69 | </RelativeLayout> |
Santiago Etchebehere | 988f99d | 2018-12-20 17:13:12 -0800 | [diff] [blame] | 70 | </LinearLayout> |