OSDN Git Service

Eleven: much material
[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     xmlns:card_view="http://schemas.android.com/apk/res-auto"
21     android:layout_width="match_parent"
22     android:layout_height="wrap_content"
23     card_view:cardElevation="4dp"
24     card_view:cardCornerRadius="2dp"
25     card_view:cardBackgroundColor="@color/cards_bg_color" >
26
27     <LinearLayout
28         android:layout_width="match_parent"
29         android:layout_height="wrap_content"
30         android:orientation="vertical">
31
32         <include layout="@layout/square_image_view" />
33
34         <LinearLayout
35             android:layout_width="match_parent"
36             android:layout_height="@dimen/grid_bottom_height"
37             android:paddingLeft="@dimen/grid_item_padding_left"
38             android:orientation="horizontal">
39
40             <LinearLayout
41                 android:layout_width="0dp"
42                 android:layout_height="wrap_content"
43                 android:layout_weight="1"
44                 android:layout_gravity="center_vertical"
45                 android:orientation="vertical">
46
47                 <TextView
48                     android:id="@+id/line_one"
49                     style="@style/ListItemMainText.Grid.Single"
50                     android:textColor="@color/cardOne"
51                     android:paddingBottom="1dp"
52                     android:layout_width="match_parent"
53                     android:layout_height="wrap_content" />
54
55                 <TextView
56                     android:id="@+id/line_two"
57                     style="@style/ListItemSecondaryText.Grid.Single"
58                     android:textColor="@color/cardTwo"
59                     android:layout_width="match_parent"
60                     android:layout_height="wrap_content" />
61
62             </LinearLayout>
63
64             <com.cyanogenmod.eleven.widgets.PopupMenuButton
65                 android:id="@+id/popup_menu_button"
66                 android:layout_width="wrap_content"
67                 android:layout_height="match_parent"
68                 android:paddingRight="@dimen/grid_item_padding_right"
69                 android:src="@drawable/menu_button_light" />
70
71         </LinearLayout>
72
73     </LinearLayout>
74
75 </android.support.v7.widget.CardView>