OSDN Git Service

Eleven: much material
[android-x86/packages-apps-Eleven.git] / res / layout / app_widget_large.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 <GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
19     xmlns:tools="http://schemas.android.com/tools"
20     android:layout_width="match_parent"
21     android:layout_height="@dimen/app_widget_large_min_height"
22     android:columnCount="2"
23     android:rowCount="4"
24     android:background="@color/black"
25     tools:ignore="ContentDescription" >
26
27     <ImageView
28         android:id="@+id/app_widget_large_image"
29         android:layout_width="@dimen/notification_expanded_height"
30         android:layout_height="@dimen/notification_expanded_height"
31         android:layout_rowSpan="4"
32         android:layout_marginBottom="@dimen/app_widget_bottom_margin"
33         android:scaleType="fitXY" />
34
35     <LinearLayout
36         android:id="@+id/app_widget_large_info_container"
37         android:layout_width="0dp"
38         android:layout_gravity="fill"
39         android:gravity="center_vertical"
40         android:orientation="vertical"
41         android:paddingLeft="@dimen/notification_info_container_padding_left" >
42
43         <TextView
44             android:id="@+id/app_widget_large_line_one"
45             style="@style/NotificationText"
46             android:textColor="@color/widget_text"
47             android:textSize="@dimen/text_size_medium"
48             android:textStyle="bold" />
49
50         <TextView
51             android:id="@+id/app_widget_large_line_two"
52             style="@style/NotificationText"
53             android:textColor="@color/widget_text"
54             android:textSize="@dimen/text_size_small" />
55
56         <TextView
57             android:id="@+id/app_widget_large_line_three"
58             style="@style/NotificationText"
59             android:textColor="@color/widget_text"
60             android:textSize="@dimen/text_size_small" />
61     </LinearLayout>
62
63     <LinearLayout
64         android:id="@+id/app_widget_large_buttons"
65         android:layout_width="0dp"
66         android:layout_gravity="fill_horizontal"
67         android:layout_marginBottom="@dimen/app_widget_bottom_margin"
68         android:dividerPadding="@dimen/notification_expanded_buttons_divider_padding"
69         android:gravity="center_vertical"
70         android:orientation="horizontal"
71         android:showDividers="middle" >
72
73         <ImageButton
74             android:id="@+id/app_widget_large_previous"
75             android:layout_width="0dp"
76             android:layout_height="@dimen/notification_expanded_button_height"
77             android:layout_weight="1"
78             android:background="?android:selectableItemBackground"
79             android:contentDescription="@string/accessibility_prev"
80             android:padding="@dimen/notification_expanded_button_padding"
81             android:scaleType="fitCenter"
82             android:src="@drawable/btn_playback_previous" />
83
84         <ImageButton
85             android:id="@+id/app_widget_large_play"
86             android:layout_width="0dp"
87             android:layout_height="@dimen/notification_expanded_button_height"
88             android:layout_weight="1"
89             android:background="?android:selectableItemBackground"
90             android:padding="@dimen/notification_expanded_button_padding"
91             android:scaleType="fitCenter"
92             android:src="@drawable/btn_playback_pause" />
93
94         <ImageButton
95             android:id="@+id/app_widget_large_next"
96             android:layout_width="0dp"
97             android:layout_height="@dimen/notification_expanded_button_height"
98             android:layout_weight="1"
99             android:background="?android:selectableItemBackground"
100             android:contentDescription="@string/accessibility_next"
101             android:padding="@dimen/notification_expanded_button_padding"
102             android:scaleType="fitCenter"
103             android:src="@drawable/btn_playback_next" />
104     </LinearLayout>
105
106 </GridLayout>