OSDN Git Service

am 5f9d15ed: am 86d85300: am 19336da3: am ac2347c0: am 158fa952: am df9b13af: am...
[android-x86/packages-apps-Settings.git] / res / layout-land / dashboard_tile.xml
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
18         xmlns:android="http://schemas.android.com/apk/res/android"
19         android:layout_width="match_parent"
20         android:layout_height="wrap_content"
21         android:minHeight="@dimen/dashboard_tile_minimum_height">
22
23     <LinearLayout
24             android:layout_width="match_parent"
25             android:layout_height="match_parent"
26             android:orientation="vertical">
27
28         <LinearLayout
29                 android:layout_width="match_parent"
30                 android:layout_height="0dp"
31                 android:orientation="horizontal"
32                 android:gravity="center_vertical"
33                 android:layout_weight="1">
34
35             <ImageView
36                     android:id="@+id/icon"
37                     android:layout_width="@dimen/dashboard_tile_image_size"
38                     android:layout_height="@dimen/dashboard_tile_image_size"
39                     android:scaleType="centerInside"
40                     android:layout_marginStart="@dimen/dashboard_tile_image_margin_start"
41                     android:layout_marginEnd="@dimen/dashboard_tile_image_margin_end" />
42
43             <RelativeLayout
44                     android:layout_width="wrap_content"
45                     android:layout_height="wrap_content">
46
47                 <TextView android:id="@+id/title"
48                           android:layout_width="wrap_content"
49                           android:layout_height="wrap_content"
50                           android:singleLine="true"
51                           android:textAppearance="@style/TextAppearance.TileTitle"
52                           android:ellipsize="marquee"
53                           android:fadingEdge="horizontal" />
54
55                 <TextView android:id="@+id/status"
56                           android:layout_width="wrap_content"
57                           android:layout_height="wrap_content"
58                           android:layout_below="@id/title"
59                           android:layout_alignStart="@android:id/title"
60                           android:textAppearance="@style/TextAppearance.Small"
61                           android:textColor="?android:attr/textColorSecondary" />
62
63             </RelativeLayout>
64
65         </LinearLayout>
66
67         <View android:id="@+id/tile_divider"
68               android:layout_width="match_parent"
69               android:layout_height="1dp"
70               android:background="?android:attr/dividerVertical" />
71
72     </LinearLayout>
73
74 </LinearLayout>