blob: f0c7777570bb9e6bbbf1a7719eccfd2d1f9cde67 [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"
19 android:layout_height="match_parent"
20 android:orientation="vertical">
21
22 <TextView
23 android:id="@+id/option_label"
Santiago Etchebehere78acbb62019-02-19 15:36:23 -080024 android:layout_width="@dimen/option_tile_width"
Santiago Etchebehere273f6552019-01-04 17:33:45 -080025 android:layout_height="wrap_content"
26 android:layout_gravity="center_horizontal"
27 android:layout_marginBottom="@dimen/theme_option_label_margin"
Santiago Etchebehere78acbb62019-02-19 15:36:23 -080028 android:ellipsize="end"
29 android:gravity="center_horizontal"
30 android:maxLines="1"
Santiago Etchebehere273f6552019-01-04 17:33:45 -080031 android:textAppearance="@style/OptionTitleTextAppearance"/>
32 <RelativeLayout
33 android:id="@+id/option_tile"
34 android:layout_width="@dimen/option_tile_width"
35 android:layout_height="@dimen/option_tile_width"
36 android:layout_gravity="center_horizontal"
37 android:paddingHorizontal="@dimen/option_tile_padding_horizontal"
38 android:paddingVertical="@dimen/option_tile_padding_vertical"
39 android:background="@drawable/option_border">
Santiago Etchebehere273f6552019-01-04 17:33:45 -080040 <ImageView
41 android:id="@+id/theme_option_icon"
Santiago Etchebehereb91d3462019-03-14 14:08:49 -070042 android:layout_width="@dimen/theme_option_icon_sample_width"
43 android:layout_height="@dimen/theme_option_icon_sample_height"
44 android:layout_alignParentTop="true"
45 android:layout_alignParentLeft="true"
46 android:layout_margin="@dimen/theme_option_sample_padding"/>
47 <ImageView
48 android:id="@+id/theme_option_shape"
49 android:layout_width="@dimen/theme_option_shape_sample_width"
50 android:layout_height="@dimen/theme_option_shape_sample_height"
Santiago Etchebeheref18580d2019-01-10 10:24:42 -080051 android:layout_alignParentRight="true"
Santiago Etchebehereb91d3462019-03-14 14:08:49 -070052 android:layout_alignBottom="@+id/theme_option_icon"
53 android:layout_marginHorizontal="@dimen/theme_option_sample_padding"/>
54 <TextView
55 android:id="@+id/theme_option_font"
56 android:layout_width="@dimen/theme_option_font_sample_width"
57 android:layout_height="@dimen/theme_option_font_sample_height"
58 android:layout_alignParentBottom="true"
59 android:layout_gravity="center_horizontal"
60 android:gravity="center"
61 android:textSize="@dimen/theme_option_font_text_size"
62 android:letterSpacing=".2"
63 android:text="@string/theme_font_example"/>
Santiago Etchebehere273f6552019-01-04 17:33:45 -080064 </RelativeLayout>
Santiago Etchebehere988f99d2018-12-20 17:13:12 -080065</LinearLayout>