blob: aa1d00e141428464a6fc9c76f13f2b4b313eee7c [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"
Fabrice Di Meglio21d26572014-06-05 18:23:35 -070022 android:minHeight="@dimen/dashboard_tile_minimum_height">
Fabrice Di Meglio769630c2014-04-24 14:48:48 -070023
24 <ImageView
25 android:id="@+id/icon"
Fabrice Di Meglioeb072e12014-06-05 17:36:45 -070026 android:layout_width="@dimen/dashboard_tile_image_size"
27 android:layout_height="@dimen/dashboard_tile_image_size"
Fabrice Di Meglio769630c2014-04-24 14:48:48 -070028 android:scaleType="centerInside"
Fabrice Di Meglioc3febdf2014-06-05 12:44:35 -070029 android:layout_marginStart="@dimen/dashboard_tile_image_margin_start"
Fabrice Di Meglio47a25e72014-06-19 20:16:20 -070030 android:layout_marginEnd="@dimen/dashboard_tile_image_margin_end" />
Fabrice Di Meglio769630c2014-04-24 14:48:48 -070031
Fabrice Di Meglio47a25e72014-06-19 20:16:20 -070032 <LinearLayout
33 android:layout_width="match_parent"
34 android:layout_height="match_parent"
35 android:orientation="vertical">
Fabrice Di Meglio769630c2014-04-24 14:48:48 -070036
Fabrice Di Meglio47a25e72014-06-19 20:16:20 -070037 <LinearLayout
38 android:layout_width="match_parent"
39 android:layout_height="0dip"
40 android:orientation="vertical"
41 android:gravity="center_vertical"
42 android:layout_weight="1">
Fabrice Di Meglio769630c2014-04-24 14:48:48 -070043
Fabrice Di Meglio47a25e72014-06-19 20:16:20 -070044 <RelativeLayout
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content">
Fabrice Di Meglio769630c2014-04-24 14:48:48 -070047
Fabrice Di Meglio47a25e72014-06-19 20:16:20 -070048 <TextView android:id="@+id/title"
49 android:layout_width="wrap_content"
50 android:layout_height="wrap_content"
51 android:singleLine="true"
52 android:textAppearance="@style/TextAppearance.TileTitle"
53 android:ellipsize="marquee"
54 android:fadingEdge="horizontal" />
55
56 <TextView android:id="@+id/status"
57 android:layout_width="wrap_content"
58 android:layout_height="wrap_content"
59 android:layout_below="@id/title"
60 android:layout_alignStart="@android:id/title"
61 android:textAppearance="@style/TextAppearance.Small"
62 android:textColor="?android:attr/textColorSecondary" />
63
64 </RelativeLayout>
65
66 </LinearLayout>
67
68 <View android:id="@+id/tile_divider"
69 android:layout_width="match_parent"
70 android:layout_height="1dp"
71 android:background="?android:attr/dividerVertical" />
72
73 </LinearLayout>
Fabrice Di Meglio769630c2014-04-24 14:48:48 -070074
75</LinearLayout>