OSDN Git Service

014db85117774b4f168fefeffb2f744fd702c684
[android-x86/packages-apps-Eleven.git] / res / layout / grid_items_normal.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3   Copyright (C) 2012 Andrew Neal
4   Copyright (C) 2014 The CyanogenMod Project
5
6   Licensed under the Apache License, Version 2.0 (the "License");
7   you may not use this file except in compliance with the License.
8   You may obtain a copy of the License at
9
10   http://www.apache.org/licenses/LICENSE-2.0
11
12   Unless required by applicable law or agreed to in writing, software
13   distributed under the License is distributed on an "AS IS" BASIS,
14   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   See the License for the specific language governing permissions and
16   limitations under the License.
17 -->
18 <android.support.v7.widget.CardView
19     xmlns:android="http://schemas.android.com/apk/res/android"
20     android:layout_width="match_parent"
21     android:layout_height="wrap_content"
22     android:elevation="3dp">
23
24     <LinearLayout
25         android:layout_width="match_parent"
26         android:layout_height="wrap_content"
27         android:orientation="vertical">
28
29         <include layout="@layout/square_image_view" />
30
31         <LinearLayout
32             android:layout_width="match_parent"
33             android:layout_height="@dimen/grid_bottom_height"
34             android:paddingLeft="@dimen/grid_item_padding_left"
35             android:orientation="horizontal">
36
37             <LinearLayout
38                 android:layout_width="0dp"
39                 android:layout_height="wrap_content"
40                 android:layout_weight="1"
41                 android:layout_gravity="center_vertical"
42                 android:orientation="vertical">
43
44                 <TextView
45                     android:id="@+id/line_one"
46                     style="@style/ListItemMainText.Grid.Single"
47                     android:paddingBottom="1dp"
48                     android:layout_width="match_parent"
49                     android:layout_height="wrap_content" />
50
51                 <TextView
52                     android:id="@+id/line_two"
53                     style="@style/ListItemSecondaryText.Grid.Single"
54                     android:layout_width="match_parent"
55                     android:layout_height="wrap_content" />
56
57             </LinearLayout>
58
59             <com.cyanogenmod.eleven.widgets.PopupMenuButton
60                 android:id="@+id/popup_menu_button"
61                 android:layout_width="wrap_content"
62                 android:layout_height="wrap_content"
63                 android:layout_gravity="center_vertical"
64                 android:paddingRight="@dimen/grid_item_padding_right"
65                 android:src="@drawable/menu_button" />
66
67         </LinearLayout>
68
69     </LinearLayout>
70
71 </android.support.v7.widget.CardView>