Santiago Etchebehere | b356ed0 | 2019-02-08 09:46:32 -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" |
Wesley.CW Wang | d954abf | 2020-05-13 17:33:43 +0800 | [diff] [blame] | 19 | android:layout_height="wrap_content" |
| 20 | android:paddingHorizontal="@dimen/option_padding_horizontal" |
| 21 | android:paddingBottom="@dimen/option_bottom_margin" |
| 22 | android:clipChildren="false" |
| 23 | android:clipToPadding="false" |
Santiago Etchebehere | b356ed0 | 2019-02-08 09:46:32 -0800 | [diff] [blame] | 24 | android:orientation="vertical"> |
| 25 | |
| 26 | <TextView |
| 27 | android:id="@+id/option_label" |
Wesley.CW Wang | d954abf | 2020-05-13 17:33:43 +0800 | [diff] [blame] | 28 | android:layout_width="@dimen/option_tile_width" |
Santiago Etchebehere | b356ed0 | 2019-02-08 09:46:32 -0800 | [diff] [blame] | 29 | android:layout_height="wrap_content" |
| 30 | android:layout_gravity="center_horizontal" |
| 31 | android:layout_marginBottom="@dimen/theme_option_label_margin" |
Wesley.CW Wang | d954abf | 2020-05-13 17:33:43 +0800 | [diff] [blame] | 32 | android:ellipsize="end" |
| 33 | android:gravity="center_horizontal" |
| 34 | android:maxLines="1" |
Santiago Etchebehere | b356ed0 | 2019-02-08 09:46:32 -0800 | [diff] [blame] | 35 | android:textAppearance="@style/OptionTitleTextAppearance"/> |
| 36 | <FrameLayout |
| 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" |
Beth Thibodeau | 692dc78 | 2019-05-20 15:34:06 -0400 | [diff] [blame] | 43 | android:background="@drawable/option_border_custom"> |
Amin Shaikh | 535db3e | 2019-04-19 09:51:41 -0400 | [diff] [blame] | 44 | <ImageView |
Wesley.CW Wang | d954abf | 2020-05-13 17:33:43 +0800 | [diff] [blame] | 45 | android:layout_width="@dimen/option_icon_size" |
| 46 | android:layout_height="@dimen/option_icon_size" |
Santiago Etchebehere | b356ed0 | 2019-02-08 09:46:32 -0800 | [diff] [blame] | 47 | android:layout_gravity="center" |
Amin Shaikh | 535db3e | 2019-04-19 09:51:41 -0400 | [diff] [blame] | 48 | android:src="@drawable/ic_add_24px" |
| 49 | android:tint="?android:attr/colorAccent" /> |
Santiago Etchebehere | b356ed0 | 2019-02-08 09:46:32 -0800 | [diff] [blame] | 50 | </FrameLayout> |
| 51 | </LinearLayout> |