Fabrice Di Meglio | 769630c | 2014-04-24 14:48:48 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2014 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 | |
| 17 | <LinearLayout |
Jason Monk | f8b2180 | 2016-04-12 10:32:20 -0400 | [diff] [blame] | 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
Jason Monk | 2386dfc | 2016-04-29 09:25:36 -0400 | [diff] [blame] | 19 | android:id="@+id/dashboard_tile" |
Jason Monk | f8b2180 | 2016-04-12 10:32:20 -0400 | [diff] [blame] | 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="wrap_content" |
jackqdyulei | 8a05c9b | 2017-03-22 10:52:29 -0700 | [diff] [blame] | 22 | android:background="?android:attr/selectableItemBackground" |
Jason Monk | f8b2180 | 2016-04-12 10:32:20 -0400 | [diff] [blame] | 23 | android:gravity="center_vertical" |
| 24 | android:minHeight="@dimen/dashboard_tile_minimum_height" |
| 25 | android:clickable="true" |
Fan Zhang | 8f0a0ac | 2016-06-27 18:09:18 -0700 | [diff] [blame] | 26 | android:focusable="true"> |
Fabrice Di Meglio | 769630c | 2014-04-24 14:48:48 -0700 | [diff] [blame] | 27 | |
| 28 | <ImageView |
Jason Monk | f8b2180 | 2016-04-12 10:32:20 -0400 | [diff] [blame] | 29 | android:id="@android:id/icon" |
| 30 | android:layout_width="@dimen/dashboard_tile_image_size" |
| 31 | android:layout_height="@dimen/dashboard_tile_image_size" |
| 32 | android:scaleType="centerInside" |
Fan Zhang | 1c4dcdc | 2017-05-23 14:23:07 -0700 | [diff] [blame] | 33 | android:layout_marginStart="@dimen/dashboard_tile_image_margin" |
| 34 | android:layout_marginEnd="@dimen/dashboard_tile_image_margin" /> |
Fabrice Di Meglio | 769630c | 2014-04-24 14:48:48 -0700 | [diff] [blame] | 35 | |
Fabrice Di Meglio | 47a25e7 | 2014-06-19 20:16:20 -0700 | [diff] [blame] | 36 | <LinearLayout |
Jason Monk | f8b2180 | 2016-04-12 10:32:20 -0400 | [diff] [blame] | 37 | android:layout_width="match_parent" |
| 38 | android:layout_height="wrap_content" |
| 39 | android:orientation="vertical"> |
Fabrice Di Meglio | 769630c | 2014-04-24 14:48:48 -0700 | [diff] [blame] | 40 | |
Jason Monk | f8b2180 | 2016-04-12 10:32:20 -0400 | [diff] [blame] | 41 | <TextView android:id="@android:id/title" |
| 42 | android:layout_width="wrap_content" |
| 43 | android:layout_height="wrap_content" |
| 44 | android:singleLine="true" |
| 45 | android:textAppearance="@style/TextAppearance.TileTitle" |
| 46 | android:ellipsize="marquee" |
| 47 | android:fadingEdge="horizontal" /> |
Fabrice Di Meglio | 769630c | 2014-04-24 14:48:48 -0700 | [diff] [blame] | 48 | |
Jason Monk | f8b2180 | 2016-04-12 10:32:20 -0400 | [diff] [blame] | 49 | <TextView android:id="@android:id/summary" |
| 50 | android:layout_width="wrap_content" |
| 51 | android:layout_height="wrap_content" |
| 52 | android:textAppearance="@style/TextAppearance.Small" |
Roozbeh Pournader | 5272b1c | 2016-05-25 14:33:20 -0700 | [diff] [blame] | 53 | android:textColor="?android:attr/textColorSecondary" |
| 54 | android:maxLines="1" |
| 55 | android:ellipsize="end" |
Fan Zhang | 1c4dcdc | 2017-05-23 14:23:07 -0700 | [diff] [blame] | 56 | android:paddingEnd="@dimen/dashboard_tile_image_margin" /> |
Fabrice Di Meglio | 47a25e7 | 2014-06-19 20:16:20 -0700 | [diff] [blame] | 57 | |
Fabrice Di Meglio | 47a25e7 | 2014-06-19 20:16:20 -0700 | [diff] [blame] | 58 | </LinearLayout> |
Fabrice Di Meglio | 769630c | 2014-04-24 14:48:48 -0700 | [diff] [blame] | 59 | |
Jason Monk | 7c7eb70 | 2015-11-11 16:45:49 -0500 | [diff] [blame] | 60 | </LinearLayout> |