OSDN Git Service

b7790ae59aabbccc27d83f3e3634781ce1d1deee
[android-x86/packages-apps-Eleven.git] / res / layout / app_widget_large_alternate.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:background="@drawable/appwidget_bg"
23     android:columnCount="2"
24     android:rowCount="3"
25     tools:ignore="ContentDescription" >
26
27     <ImageView
28         android:id="@+id/app_widget_large_alternate_image"
29         android:layout_width="@dimen/app_widget_large_alternate_artwork_size"
30         android:layout_height="@dimen/app_widget_large_alternate_artwork_size"
31         android:scaleType="fitXY" />
32
33     <LinearLayout
34         android:id="@+id/app_widget_large_alternate_info_container"
35         android:layout_width="0dp"
36         android:layout_gravity="center_vertical|fill_horizontal"
37         android:orientation="vertical"
38         android:paddingLeft="@dimen/notification_info_container_padding_left" >
39
40         <TextView
41             android:id="@+id/app_widget_large_alternate_line_one"
42             style="@style/NotificationText"
43             android:textColor="@color/widget_text"
44             android:textSize="@dimen/text_size_medium"
45             android:textStyle="bold" />
46
47         <TextView
48             android:id="@+id/app_widget_large_alternate_line_two"
49             style="@style/NotificationText"
50             android:textColor="@color/widget_text"
51             android:fontFamily="sans-serif-light"
52             android:textSize="@dimen/text_size_small" />
53
54         <TextView
55             android:id="@+id/app_widget_large_alternate_line_three"
56             style="@style/NotificationText"
57             android:textColor="@color/widget_text"
58             android:fontFamily="sans-serif-light"
59             android:textSize="@dimen/text_size_small" />
60
61     </LinearLayout>
62
63     <LinearLayout
64         android:layout_gravity="fill_horizontal"
65         android:layout_height="1dp"
66         android:layout_columnSpan="2"
67         android:background="@color/widget_divider" />
68
69     <LinearLayout
70         android:id="@+id/app_widget_large_alternate_buttons"
71         android:layout_columnSpan="2"
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_alternate_shuffle"
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_shuffle"
87             android:padding="@dimen/notification_expanded_button_padding"
88             android:scaleType="fitCenter"
89             android:src="@drawable/btn_playback_shuffle_all" />
90
91         <ImageButton
92             android:id="@+id/app_widget_large_alternate_previous"
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:contentDescription="@string/accessibility_prev"
98             android:padding="@dimen/notification_expanded_button_padding"
99             android:scaleType="fitCenter"
100             android:src="@drawable/btn_playback_previous" />
101
102         <ImageButton
103             android:id="@+id/app_widget_large_alternate_play"
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:padding="@dimen/notification_expanded_button_padding"
109             android:scaleType="fitCenter"
110             android:src="@drawable/btn_playback_pause" />
111
112         <ImageButton
113             android:id="@+id/app_widget_large_alternate_next"
114             android:layout_width="0dp"
115             android:layout_height="@dimen/notification_expanded_button_height"
116             android:layout_weight="1"
117             android:background="?android:selectableItemBackground"
118             android:contentDescription="@string/accessibility_next"
119             android:padding="@dimen/notification_expanded_button_padding"
120             android:scaleType="fitCenter"
121             android:src="@drawable/btn_playback_next" />
122
123         <ImageButton
124             android:id="@+id/app_widget_large_alternate_repeat"
125             android:layout_width="0dp"
126             android:layout_height="@dimen/notification_expanded_button_height"
127             android:layout_weight="1"
128             android:background="?android:selectableItemBackground"
129             android:contentDescription="@string/accessibility_repeat"
130             android:padding="@dimen/notification_expanded_button_padding"
131             android:scaleType="fitCenter"
132             android:src="@drawable/btn_playback_repeat_all" />
133     </LinearLayout>
134
135 </GridLayout>