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 | <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 17 | android:layout_width="match_parent" |
| 18 | android:layout_height="match_parent" |
| 19 | android:contentDescription="@string/wallpaper_thumbnail"> |
| 20 | |
| 21 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 22 | android:id="@+id/tile" |
| 23 | android:layout_width="match_parent" |
| 24 | android:layout_height="match_parent" |
| 25 | android:background="@color/light_grey" |
| 26 | android:clickable="true" |
| 27 | android:focusable="true" |
| 28 | android:foreground="?attr/selectableItemBackground"> |
| 29 | |
| 30 | <ImageView |
| 31 | android:id="@+id/thumbnail" |
| 32 | android:layout_width="match_parent" |
| 33 | android:layout_height="match_parent" |
| 34 | android:background="@color/secondary_color" |
| 35 | android:scaleType="centerCrop" /> |
| 36 | |
| 37 | <ImageView |
| 38 | android:id="@+id/overlay_icon" |
| 39 | android:layout_width="wrap_content" |
| 40 | android:layout_height="wrap_content" |
| 41 | android:layout_centerInParent="true" /> |
| 42 | |
| 43 | <FrameLayout |
| 44 | android:layout_width="match_parent" |
| 45 | android:layout_height="wrap_content" |
| 46 | android:layout_alignParentBottom="true" |
| 47 | android:background="@color/translucent_black_90_alpha" |
| 48 | android:padding="@dimen/rotation_tile_desktop_label_padding"> |
| 49 | |
| 50 | <TextView |
| 51 | android:layout_width="wrap_content" |
| 52 | android:layout_height="wrap_content" |
| 53 | android:text="@string/my_photos_category_title" |
| 54 | android:textColor="@color/material_white_100" |
| 55 | android:textSize="@dimen/rotation_tile_desktop_label_text_size" /> |
| 56 | |
| 57 | </FrameLayout> |
| 58 | |
| 59 | </RelativeLayout> |
| 60 | |
| 61 | </FrameLayout> |