blob: d1625c7e68cbbc33e92a25c6d20311e01b7a7f7f [file] [log] [blame]
Fabrice Di Meglio769630c2014-04-24 14:48:48 -07001<?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
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 android:layout_width="match_parent"
Fabrice Di Meglio47a25e72014-06-19 20:16:20 -070020 android:layout_height="wrap_content"
Fabrice Di Meglio769630c2014-04-24 14:48:48 -070021 android:gravity="center_vertical"
Jason Monk7c7eb702015-11-11 16:45:49 -050022 android:minHeight="@dimen/dashboard_tile_minimum_height"
23 android:clickable="true"
24 android:background="@drawable/selectable_card"
25 android:elevation="@dimen/dashboard_category_elevation" >
Fabrice Di Meglio769630c2014-04-24 14:48:48 -070026
27 <ImageView
Jason Monk7c7eb702015-11-11 16:45:49 -050028 android:id="@android:id/icon"
Fabrice Di Meglioeb072e12014-06-05 17:36:45 -070029 android:layout_width="@dimen/dashboard_tile_image_size"
30 android:layout_height="@dimen/dashboard_tile_image_size"
Fabrice Di Meglio769630c2014-04-24 14:48:48 -070031 android:scaleType="centerInside"
Fabrice Di Meglioc3febdf2014-06-05 12:44:35 -070032 android:layout_marginStart="@dimen/dashboard_tile_image_margin_start"
Fabrice Di Meglio47a25e72014-06-19 20:16:20 -070033 android:layout_marginEnd="@dimen/dashboard_tile_image_margin_end" />
Fabrice Di Meglio769630c2014-04-24 14:48:48 -070034
Fabrice Di Meglio47a25e72014-06-19 20:16:20 -070035 <LinearLayout
36 android:layout_width="match_parent"
37 android:layout_height="match_parent"
38 android:orientation="vertical">
Fabrice Di Meglio769630c2014-04-24 14:48:48 -070039
Fabrice Di Meglio47a25e72014-06-19 20:16:20 -070040 <LinearLayout
41 android:layout_width="match_parent"
42 android:layout_height="0dip"
43 android:orientation="vertical"
44 android:gravity="center_vertical"
45 android:layout_weight="1">
Fabrice Di Meglio769630c2014-04-24 14:48:48 -070046
Fabrice Di Meglio47a25e72014-06-19 20:16:20 -070047 <RelativeLayout
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content">
Fabrice Di Meglio769630c2014-04-24 14:48:48 -070050
Jason Monk7c7eb702015-11-11 16:45:49 -050051 <TextView android:id="@android:id/title"
Fabrice Di Meglio47a25e72014-06-19 20:16:20 -070052 android:layout_width="wrap_content"
53 android:layout_height="wrap_content"
54 android:singleLine="true"
55 android:textAppearance="@style/TextAppearance.TileTitle"
56 android:ellipsize="marquee"
57 android:fadingEdge="horizontal" />
58
Jason Monk7c7eb702015-11-11 16:45:49 -050059 <TextView android:id="@android:id/summary"
Fabrice Di Meglio47a25e72014-06-19 20:16:20 -070060 android:layout_width="wrap_content"
61 android:layout_height="wrap_content"
62 android:layout_below="@id/title"
63 android:layout_alignStart="@android:id/title"
64 android:textAppearance="@style/TextAppearance.Small"
65 android:textColor="?android:attr/textColorSecondary" />
66
67 </RelativeLayout>
68
69 </LinearLayout>
70
Fabrice Di Meglio47a25e72014-06-19 20:16:20 -070071 </LinearLayout>
Fabrice Di Meglio769630c2014-04-24 14:48:48 -070072
Jason Monk7c7eb702015-11-11 16:45:49 -050073</LinearLayout>