Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?><!-- |
| 2 | Copyright (C) 2017 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 17 | xmlns:tools="http://schemas.android.com/tools" |
| 18 | android:id="@+id/tile" |
| 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="match_parent" |
| 21 | android:clickable="true" |
| 22 | android:focusable="true" |
| 23 | android:foreground="?attr/selectableItemBackground"> |
| 24 | |
| 25 | <ImageView |
| 26 | android:id="@+id/image" |
| 27 | android:layout_width="match_parent" |
| 28 | android:layout_height="match_parent" |
| 29 | android:background="@color/secondary_color" |
| 30 | android:scaleType="centerCrop" /> |
| 31 | |
| 32 | <ImageView |
| 33 | android:id="@+id/overlay_icon" |
| 34 | android:layout_width="wrap_content" |
| 35 | android:layout_height="wrap_content" |
| 36 | android:layout_centerInParent="true" |
| 37 | android:layout_marginBottom="@dimen/grid_item_category_overlay_icon_margin_bottom" /> |
| 38 | |
| 39 | <TextView |
| 40 | android:id="@+id/category_title" |
| 41 | android:layout_width="match_parent" |
| 42 | android:layout_height="wrap_content" |
| 43 | android:layout_alignParentBottom="true" |
| 44 | android:background="@color/category_title_scrim_color" |
| 45 | android:gravity="center_vertical" |
| 46 | android:padding="@dimen/grid_item_category_label_padding" |
| 47 | android:textColor="@color/category_title_text_color" |
| 48 | android:textSize="@dimen/abc_text_size_subhead_material" |
| 49 | tools:text="Wallpaper category" /> |
| 50 | |
| 51 | </RelativeLayout> |