OSDN Git Service

Eleven: Switch default artist and album to a more colorful version
[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  
5   Licensed under the Apache License, Version 2.0 (the "License");
6   you may not use this file except in compliance with the License.
7   You may obtain a copy of the License at
8  
9        http://www.apache.org/licenses/LICENSE-2.0
10  
11   Unless required by applicable law or agreed to in writing, software
12   distributed under the License is distributed on an "AS IS" BASIS,
13   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   See the License for the specific language governing permissions and
15   limitations under the License.
16 -->
17 <GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
18     xmlns:tools="http://schemas.android.com/tools"
19     android:layout_width="match_parent"
20     android:layout_height="@dimen/app_widget_large_min_height"
21     android:columnCount="2"
22     android:rowCount="3"
23     android:background="@drawable/appwidget_bg"
24     tools:ignore="ContentDescription" >
25
26     <ImageView
27         android:id="@+id/app_widget_large_image"
28         android:layout_width="@dimen/notification_expanded_height"
29         android:layout_height="@dimen/notification_expanded_height"
30         android:layout_rowSpan="3"
31         android:layout_marginBottom="@dimen/app_widget_bottom_margin"
32         android:scaleType="fitXY" />
33
34     <LinearLayout
35         android:id="@+id/app_widget_large_info_container"
36         android:layout_width="0dp"
37         android:layout_gravity="fill"
38         android:gravity="center_vertical"
39         android:orientation="vertical"
40         android:paddingLeft="@dimen/notification_info_container_padding_left" >
41
42         <TextView
43             android:id="@+id/app_widget_large_line_one"
44             style="@style/NotificationText"
45             android:textColor="@color/widget_text"
46             android:textSize="@dimen/text_size_medium"
47             android:textStyle="bold" />
48
49         <TextView
50             android:id="@+id/app_widget_large_line_two"
51             style="@style/NotificationText"
52             android:textColor="@color/widget_text"
53             android:fontFamily="sans-serif-light"
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:fontFamily="sans-serif-light"
61             android:textSize="@dimen/text_size_small" />
62     </LinearLayout>
63
64     <LinearLayout
65         android:layout_gravity="fill_horizontal"
66         android:layout_width="0dp"
67         android:layout_height="1dp"
68         android:background="@color/widget_divider" />
69
70     <LinearLayout
71         android:id="@+id/app_widget_large_buttons"
72         android:layout_width="0dp"
73         android:layout_gravity="fill_horizontal"
74         android:layout_marginBottom="@dimen/app_widget_bottom_margin"
75         android:dividerPadding="@dimen/notification_expanded_buttons_divider_padding"
76         android:gravity="center_vertical"
77         android:orientation="horizontal"
78         android:showDividers="middle" >
79
80         <ImageButton
81             android:id="@+id/app_widget_large_previous"
82             android:layout_width="0dp"
83             android:layout_height="@dimen/notification_expanded_button_height"
84             android:layout_weight="1"
85             android:background="?android:selectableItemBackground"
86             android:contentDescription="@string/accessibility_prev"
87             android:padding="@dimen/notification_expanded_button_padding"
88             android:scaleType="fitCenter"
89             android:src="@drawable/btn_playback_previous" />
90
91         <ImageButton
92             android:id="@+id/app_widget_large_play"
93             android:layout_width="0dp"
94             android:layout_height="@dimen/notification_expanded_button_height"
95             android:layout_weight="1"
96             android:background="?android:selectableItemBackground"
97             android:padding="@dimen/notification_expanded_button_padding"
98             android:scaleType="fitCenter"
99             android:src="@drawable/btn_playback_pause" />
100
101         <ImageButton
102             android:id="@+id/app_widget_large_next"
103             android:layout_width="0dp"
104             android:layout_height="@dimen/notification_expanded_button_height"
105             android:layout_weight="1"
106             android:background="?android:selectableItemBackground"
107             android:contentDescription="@string/accessibility_next"
108             android:padding="@dimen/notification_expanded_button_padding"
109             android:scaleType="fitCenter"
110             android:src="@drawable/btn_playback_next" />
111     </LinearLayout>
112
113 </GridLayout>