blob: de81231930e4e04010c3369d1007f68c11c943ec [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"
18 android:layout_width="wrap_content"
Santiago Etchebeheredcc9bfb2019-04-26 12:10:27 -070019 android:layout_height="wrap_content"
20 android:paddingRight="2dp"
21 android:paddingBottom="@dimen/option_bottom_margin"
Santiago Etchebehere273f6552019-01-04 17:33:45 -080022 android:orientation="vertical">
23
24 <TextView
25 android:id="@+id/option_label"
Santiago Etchebehere78acbb62019-02-19 15:36:23 -080026 android:layout_width="@dimen/option_tile_width"
Santiago Etchebehere273f6552019-01-04 17:33:45 -080027 android:layout_height="wrap_content"
28 android:layout_gravity="center_horizontal"
29 android:layout_marginBottom="@dimen/theme_option_label_margin"
Santiago Etchebehere78acbb62019-02-19 15:36:23 -080030 android:ellipsize="end"
31 android:gravity="center_horizontal"
32 android:maxLines="1"
Santiago Etchebehere273f6552019-01-04 17:33:45 -080033 android:textAppearance="@style/OptionTitleTextAppearance"/>
34 <RelativeLayout
35 android:id="@+id/option_tile"
36 android:layout_width="@dimen/option_tile_width"
37 android:layout_height="@dimen/option_tile_width"
38 android:layout_gravity="center_horizontal"
39 android:paddingHorizontal="@dimen/option_tile_padding_horizontal"
40 android:paddingVertical="@dimen/option_tile_padding_vertical"
41 android:background="@drawable/option_border">
Santiago Etchebehere273f6552019-01-04 17:33:45 -080042 <ImageView
43 android:id="@+id/theme_option_icon"
Santiago Etchebehereb91d3462019-03-14 14:08:49 -070044 android:layout_width="@dimen/theme_option_icon_sample_width"
45 android:layout_height="@dimen/theme_option_icon_sample_height"
46 android:layout_alignParentTop="true"
47 android:layout_alignParentLeft="true"
48 android:layout_margin="@dimen/theme_option_sample_padding"/>
49 <ImageView
50 android:id="@+id/theme_option_shape"
51 android:layout_width="@dimen/theme_option_shape_sample_width"
52 android:layout_height="@dimen/theme_option_shape_sample_height"
Santiago Etchebeheref18580d2019-01-10 10:24:42 -080053 android:layout_alignParentRight="true"
Santiago Etchebehereb91d3462019-03-14 14:08:49 -070054 android:layout_alignBottom="@+id/theme_option_icon"
55 android:layout_marginHorizontal="@dimen/theme_option_sample_padding"/>
56 <TextView
57 android:id="@+id/theme_option_font"
58 android:layout_width="@dimen/theme_option_font_sample_width"
59 android:layout_height="@dimen/theme_option_font_sample_height"
60 android:layout_alignParentBottom="true"
61 android:layout_gravity="center_horizontal"
62 android:gravity="center"
63 android:textSize="@dimen/theme_option_font_text_size"
64 android:letterSpacing=".2"
65 android:text="@string/theme_font_example"/>
Santiago Etchebehere273f6552019-01-04 17:33:45 -080066 </RelativeLayout>
Santiago Etchebehere988f99d2018-12-20 17:13:12 -080067</LinearLayout>