1 <?xml version="1.0" encoding="utf-8"?>
3 Copyright (C) 2012 Andrew Neal
4 Copyright (C) 2014 The CyanogenMod Project
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
10 http://www.apache.org/licenses/LICENSE-2.0
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.
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"
24 android:background="@drawable/appwidget_bg"
25 tools:ignore="ContentDescription" >
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="3"
32 android:layout_marginBottom="@dimen/app_widget_bottom_margin"
33 android:scaleType="fitXY" />
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" >
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" />
51 android:id="@+id/app_widget_large_line_two"
52 style="@style/NotificationText"
53 android:textColor="@color/widget_text"
54 android:fontFamily="sans-serif-light"
55 android:textSize="@dimen/text_size_small" />
58 android:id="@+id/app_widget_large_line_three"
59 style="@style/NotificationText"
60 android:textColor="@color/widget_text"
61 android:fontFamily="sans-serif-light"
62 android:textSize="@dimen/text_size_small" />
66 android:layout_gravity="fill_horizontal"
67 android:layout_width="0dp"
68 android:layout_height="1dp"
69 android:background="@color/widget_divider" />
72 android:id="@+id/app_widget_large_buttons"
73 android:layout_width="0dp"
74 android:layout_gravity="fill_horizontal"
75 android:layout_marginBottom="@dimen/app_widget_bottom_margin"
76 android:dividerPadding="@dimen/notification_expanded_buttons_divider_padding"
77 android:gravity="center_vertical"
78 android:orientation="horizontal"
79 android:showDividers="middle" >
82 android:id="@+id/app_widget_large_previous"
83 android:layout_width="0dp"
84 android:layout_height="@dimen/notification_expanded_button_height"
85 android:layout_weight="1"
86 android:background="?android:selectableItemBackground"
87 android:contentDescription="@string/accessibility_prev"
88 android:padding="@dimen/notification_expanded_button_padding"
89 android:scaleType="fitCenter"
90 android:src="@drawable/btn_playback_previous" />
93 android:id="@+id/app_widget_large_play"
94 android:layout_width="0dp"
95 android:layout_height="@dimen/notification_expanded_button_height"
96 android:layout_weight="1"
97 android:background="?android:selectableItemBackground"
98 android:padding="@dimen/notification_expanded_button_padding"
99 android:scaleType="fitCenter"
100 android:src="@drawable/btn_playback_pause" />
103 android:id="@+id/app_widget_large_next"
104 android:layout_width="0dp"
105 android:layout_height="@dimen/notification_expanded_button_height"
106 android:layout_weight="1"
107 android:background="?android:selectableItemBackground"
108 android:contentDescription="@string/accessibility_next"
109 android:padding="@dimen/notification_expanded_button_padding"
110 android:scaleType="fitCenter"
111 android:src="@drawable/btn_playback_next" />