• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 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:clickable="true"
22    android:focusable="true"
23    android:background="@drawable/selectable_card"
24    android:elevation="@dimen/dashboard_category_elevation"
25    android:orientation="vertical" >
26
27    <View
28        android:layout_width="match_parent"
29        android:layout_height="1dp"
30        android:background="?android:attr/listDivider" />
31
32    <LinearLayout
33        android:layout_width="match_parent"
34        android:layout_height="wrap_content"
35        android:gravity="center_vertical"
36        android:minHeight="@dimen/dashboard_tile_minimum_height">
37
38        <ImageView
39            android:id="@android:id/icon"
40            android:layout_width="@dimen/dashboard_tile_image_size"
41            android:layout_height="@dimen/dashboard_tile_image_size"
42            android:scaleType="centerInside"
43            android:layout_marginStart="@dimen/dashboard_tile_image_margin_start"
44            android:layout_marginEnd="@dimen/dashboard_tile_image_margin_end" />
45
46        <RelativeLayout
47            android:layout_width="wrap_content"
48            android:layout_height="wrap_content"
49            android:layout_weight="1">
50
51            <TextView android:id="@android:id/title"
52                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
59            <TextView android:id="@android:id/summary"
60                android:layout_width="wrap_content"
61                android:layout_height="wrap_content"
62                android:layout_below="@android: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        <FrameLayout
70            android:layout_width="wrap_content"
71            android:layout_height="match_parent">
72
73            <ImageView android:id="@+id/overflow"
74                android:layout_width="44dp"
75                android:layout_height="44dp"
76                android:paddingStart="16dp"
77                android:paddingBottom="16dp"
78                android:paddingTop="12dp"
79                android:paddingEnd="12dp"
80                android:gravity="top"
81                style="?android:attr/actionOverflowButtonStyle" />
82
83        </FrameLayout>
84
85    </LinearLayout>
86
87</LinearLayout>
88