blob: bdf82d0b3c5e05068e9f6b9ca1b59a3dc9d35bf2 [file] [log] [blame]
Santiago Etchebehere273f6552019-01-04 17:33:45 -08001<?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 Wang09dbae32020-07-07 17:31:51 +080018 android:layout_width="match_parent"
Santiago Etchebeheredcc9bfb2019-04-26 12:10:27 -070019 android:layout_height="wrap_content"
Wesley.CW Wangd954abf2020-05-13 17:33:43 +080020 android:paddingHorizontal="@dimen/option_padding_horizontal"
Santiago Etchebeheredcc9bfb2019-04-26 12:10:27 -070021 android:paddingBottom="@dimen/option_bottom_margin"
Santiago Etchebeheref039b692019-06-05 14:29:25 -070022 android:clipChildren="false"
23 android:clipToPadding="false"
Santiago Etchebehere273f6552019-01-04 17:33:45 -080024 android:orientation="vertical">
25
26 <TextView
27 android:id="@+id/option_label"
Santiago Etchebehere78acbb62019-02-19 15:36:23 -080028 android:layout_width="@dimen/option_tile_width"
Santiago Etchebehere273f6552019-01-04 17:33:45 -080029 android:layout_height="wrap_content"
30 android:layout_gravity="center_horizontal"
31 android:layout_marginBottom="@dimen/theme_option_label_margin"
Santiago Etchebehere78acbb62019-02-19 15:36:23 -080032 android:ellipsize="end"
33 android:gravity="center_horizontal"
34 android:maxLines="1"
Santiago Etchebehere273f6552019-01-04 17:33:45 -080035 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 Etchebehere273f6552019-01-04 17:33:45 -080044 <ImageView
45 android:id="@+id/theme_option_icon"
Santiago Etchebehereb91d3462019-03-14 14:08:49 -070046 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 Chuang07bfdd52020-06-17 19:03:22 +080049 android:layout_alignParentStart="true"
Santiago Etchebehere60c3f2f2019-05-22 14:38:19 -070050 android:tint="?android:colorForeground"/>
Santiago Etchebehereb91d3462019-03-14 14:08:49 -070051 <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 Etchebehereb91d3462019-03-14 14:08:49 -070055 android:layout_alignBottom="@+id/theme_option_icon"
Wesley.CW Wangd954abf2020-05-13 17:33:43 +080056 android:layout_toEndOf="@id/theme_option_icon"
Chihhang Chuang07bfdd52020-06-17 19:03:22 +080057 android:layout_marginStart="@dimen/theme_option_sample_margin"/>
Santiago Etchebehereb91d3462019-03-14 14:08:49 -070058 <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 Wangd954abf2020-05-13 17:33:43 +080062 android:layout_gravity="center"
63 android:layout_below="@id/theme_option_icon"
64 android:layout_marginTop="@dimen/option_bottom_margin"
Santiago Etchebehere5e022e12019-10-31 13:44:31 -070065 android:autoSizeMaxTextSize="@dimen/theme_option_font_text_size"
66 android:autoSizeMinTextSize="@dimen/theme_option_font_min_text_size"
67 android:autoSizeTextType="uniform"
Santiago Etchebehereb91d3462019-03-14 14:08:49 -070068 android:gravity="center"
Santiago Etchebehereb91d3462019-03-14 14:08:49 -070069 android:letterSpacing=".2"
Santiago Etchebehere5e022e12019-10-31 13:44:31 -070070 android:text="@string/theme_font_example"
71 android:textAlignment="center"
72 android:textSize="@dimen/theme_option_font_text_size" />
Santiago Etchebehere273f6552019-01-04 17:33:45 -080073 </RelativeLayout>
Santiago Etchebehere988f99d2018-12-20 17:13:12 -080074</LinearLayout>