OSDN Git Service

Automatic translation import
[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="@color/widget_background_color"
23     android:columnCount="2"
24     android:rowCount="2"
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:textSize="@dimen/text_size_small" />
52
53         <TextView
54             android:id="@+id/app_widget_large_alternate_line_three"
55             style="@style/NotificationText"
56             android:textColor="@color/widget_text"
57             android:textSize="@dimen/text_size_small" />
58
59     </LinearLayout>
60
61     <LinearLayout
62         android:id="@+id/app_widget_large_alternate_buttons"
63         android:layout_columnSpan="2"
64         android:layout_width="0dp"
65         android:layout_gravity="fill_horizontal"
66         android:layout_marginBottom="@dimen/app_widget_bottom_margin"
67         android:dividerPadding="@dimen/notification_expanded_buttons_divider_padding"
68         android:gravity="center_vertical"
69         android:orientation="horizontal"
70         android:showDividers="middle" >
71
72         <ImageButton
73             android:id="@+id/app_widget_large_alternate_shuffle"
74             android:layout_width="0dp"
75             android:layout_height="@dimen/notification_expanded_button_height"
76             android:layout_weight="1"
77             android:background="?android:selectableItemBackground"
78             android:contentDescription="@string/accessibility_shuffle"
79             android:padding="@dimen/notification_expanded_button_padding"
80             android:scaleType="fitCenter"
81             android:src="@drawable/btn_playback_shuffle_all" />
82
83         <ImageButton
84             android:id="@+id/app_widget_large_alternate_previous"
85             android:layout_width="0dp"
86             android:layout_height="@dimen/notification_expanded_button_height"
87             android:layout_weight="1"
88             android:background="?android:selectableItemBackground"
89             android:contentDescription="@string/accessibility_prev"
90             android:padding="@dimen/notification_expanded_button_padding"
91             android:scaleType="fitCenter"
92             android:src="@drawable/btn_playback_previous" />
93
94         <ImageButton
95             android:id="@+id/app_widget_large_alternate_play"
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:padding="@dimen/notification_expanded_button_padding"
101             android:scaleType="fitCenter"
102             android:src="@drawable/btn_playback_pause" />
103
104         <ImageButton
105             android:id="@+id/app_widget_large_alternate_next"
106             android:layout_width="0dp"
107             android:layout_height="@dimen/notification_expanded_button_height"
108             android:layout_weight="1"
109             android:background="?android:selectableItemBackground"
110             android:contentDescription="@string/accessibility_next"
111             android:padding="@dimen/notification_expanded_button_padding"
112             android:scaleType="fitCenter"
113             android:src="@drawable/btn_playback_next" />
114
115         <ImageButton
116             android:id="@+id/app_widget_large_alternate_repeat"
117             android:layout_width="0dp"
118             android:layout_height="@dimen/notification_expanded_button_height"
119             android:layout_weight="1"
120             android:background="?android:selectableItemBackground"
121             android:contentDescription="@string/accessibility_repeat"
122             android:padding="@dimen/notification_expanded_button_padding"
123             android:scaleType="fitCenter"
124             android:src="@drawable/btn_playback_repeat_all" />
125     </LinearLayout>
126
127 </GridLayout>