OSDN Git Service

Themes: Expose and separate values for themes
[android-x86/packages-apps-Eleven.git] / res / layout / app_widget_large.xml
index 7756d5f..7ecc900 100644 (file)
-<?xml version="1.0" encoding="utf-8"?>\r
-<!--\r
-  Copyright (C) 2012 Andrew Neal\r
\r
-  Licensed under the Apache License, Version 2.0 (the "License");\r
-  you may not use this file except in compliance with the License.\r
-  You may obtain a copy of the License at\r
\r
-       http://www.apache.org/licenses/LICENSE-2.0\r
\r
-  Unless required by applicable law or agreed to in writing, software\r
-  distributed under the License is distributed on an "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-  See the License for the specific language governing permissions and\r
-  limitations under the License.\r
--->\r
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"\r
-    xmlns:tools="http://schemas.android.com/tools"\r
-    android:layout_width="match_parent"\r
-    android:layout_height="@dimen/app_widget_large_min_height"\r
-    android:background="@drawable/appwidget_bg"\r
-    tools:ignore="ContentDescription" >\r
-\r
-    <ImageView\r
-        android:id="@+id/app_widget_large_image"\r
-        android:layout_width="@dimen/notification_expanded_height"\r
-        android:layout_height="@dimen/notification_expanded_height"\r
-        android:layout_alignParentBottom="true"\r
-        android:layout_alignParentLeft="true"\r
-        android:background="@drawable/default_artwork"\r
-        android:scaleType="fitXY" />\r
-\r
-    <LinearLayout\r
-        android:id="@+id/app_widget_large_buttons"\r
-        android:layout_width="wrap_content"\r
-        android:layout_height="wrap_content"\r
-        android:layout_alignParentBottom="true"\r
-        android:layout_alignParentRight="true"\r
-        android:layout_toRightOf="@+id/app_widget_large_image"\r
-        android:divider="?android:listDivider"\r
-        android:dividerPadding="@dimen/notification_expanded_buttons_divider_padding"\r
-        android:gravity="center_vertical"\r
-        android:orientation="horizontal"\r
-        android:showDividers="middle" >\r
-\r
-        <ImageButton\r
-            android:id="@+id/app_widget_large_previous"\r
-            android:layout_width="0dp"\r
-            android:layout_height="@dimen/notification_expanded_button_height"\r
-            android:layout_weight="1"\r
-            android:background="?android:selectableItemBackground"\r
-            android:contentDescription="@string/accessibility_prev"\r
-            android:padding="@dimen/notification_expanded_button_padding"\r
-            android:scaleType="fitCenter"\r
-            android:src="@drawable/btn_playback_previous" />\r
-\r
-        <ImageButton\r
-            android:id="@+id/app_widget_large_play"\r
-            android:layout_width="0dp"\r
-            android:layout_height="@dimen/notification_expanded_button_height"\r
-            android:layout_weight="1"\r
-            android:background="?android:selectableItemBackground"\r
-            android:padding="@dimen/notification_expanded_button_padding"\r
-            android:scaleType="fitCenter"\r
-            android:src="@drawable/btn_playback_pause" />\r
-\r
-        <ImageButton\r
-            android:id="@+id/app_widget_large_next"\r
-            android:layout_width="0dp"\r
-            android:layout_height="@dimen/notification_expanded_button_height"\r
-            android:layout_weight="1"\r
-            android:background="?android:selectableItemBackground"\r
-            android:contentDescription="@string/accessibility_next"\r
-            android:padding="@dimen/notification_expanded_button_padding"\r
-            android:scaleType="fitCenter"\r
-            android:src="@drawable/btn_playback_next" />\r
-    </LinearLayout>\r
-\r
-    <ImageView\r
-        android:layout_width="wrap_content"\r
-        android:layout_height="1dp"\r
-        android:layout_above="@+id/app_widget_large_buttons"\r
-        android:layout_alignParentRight="true"\r
-        android:layout_toRightOf="@+id/app_widget_large_image"\r
-        android:background="?android:dividerHorizontal" />\r
-\r
-    <LinearLayout\r
-        android:id="@+id/app_widget_large_info_container"\r
-        android:layout_width="match_parent"\r
-        android:layout_height="wrap_content"\r
-        android:layout_alignParentTop="true"\r
-        android:layout_gravity="center_vertical"\r
-        android:layout_toRightOf="@+id/app_widget_large_image"\r
-        android:orientation="vertical"\r
-        android:paddingLeft="@dimen/notification_info_container_padding_left"\r
-        android:paddingTop="@dimen/notification_expanded_content_padding_top" >\r
-\r
-        <TextView\r
-            android:id="@+id/app_widget_large_line_one"\r
-            style="@style/NotificationText"\r
-            android:textColor="@color/white"\r
-            android:textSize="@dimen/text_size_medium"\r
-            android:textStyle="bold" />\r
-\r
-        <TextView\r
-            android:id="@+id/app_widget_large_line_two"\r
-            style="@style/NotificationText"\r
-            android:textColor="@color/transparent_white"\r
-            android:textSize="@dimen/text_size_small" />\r
-\r
-        <TextView\r
-            android:id="@+id/app_widget_large_line_three"\r
-            style="@style/NotificationText"\r
-            android:textColor="@color/transparent_white"\r
-            android:textSize="@dimen/text_size_small" />\r
-    </LinearLayout>\r
-\r
-</RelativeLayout>
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Copyright (C) 2012 Andrew Neal
+  Copyright (C) 2014 The CyanogenMod Project
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:layout_width="match_parent"
+    android:layout_height="@dimen/app_widget_large_min_height"
+    android:columnCount="2"
+    android:rowCount="2"
+    android:background="@color/widget_background_color"
+    tools:ignore="ContentDescription" >
+
+    <ImageView
+        android:id="@+id/app_widget_large_image"
+        android:layout_width="@dimen/notification_expanded_height"
+        android:layout_height="@dimen/notification_expanded_height"
+        android:layout_rowSpan="2"
+        android:layout_marginBottom="@dimen/app_widget_bottom_margin"
+        android:scaleType="fitXY" />
+
+    <LinearLayout
+        android:id="@+id/app_widget_large_info_container"
+        android:layout_width="0dp"
+        android:layout_gravity="fill"
+        android:gravity="center_vertical"
+        android:orientation="vertical"
+        android:paddingLeft="@dimen/notification_info_container_padding_left" >
+
+        <TextView
+            android:id="@+id/app_widget_large_line_one"
+            style="@style/NotificationText"
+            android:textColor="@color/widget_text"
+            android:textSize="@dimen/text_size_medium"
+            android:textStyle="bold" />
+
+        <TextView
+            android:id="@+id/app_widget_large_line_two"
+            style="@style/NotificationText"
+            android:textColor="@color/widget_text"
+            android:textSize="@dimen/text_size_small" />
+
+        <TextView
+            android:id="@+id/app_widget_large_line_three"
+            style="@style/NotificationText"
+            android:textColor="@color/widget_text"
+            android:textSize="@dimen/text_size_small" />
+    </LinearLayout>
+
+    <LinearLayout
+        android:id="@+id/app_widget_large_buttons"
+        android:layout_width="0dp"
+        android:layout_gravity="fill_horizontal"
+        android:layout_marginBottom="@dimen/app_widget_bottom_margin"
+        android:dividerPadding="@dimen/notification_expanded_buttons_divider_padding"
+        android:gravity="center_vertical"
+        android:orientation="horizontal"
+        android:showDividers="middle" >
+
+        <ImageButton
+            android:id="@+id/app_widget_large_previous"
+            android:layout_width="0dp"
+            android:layout_height="@dimen/notification_expanded_button_height"
+            android:layout_weight="1"
+            android:background="?android:selectableItemBackground"
+            android:contentDescription="@string/accessibility_prev"
+            android:padding="@dimen/notification_expanded_button_padding"
+            android:scaleType="fitCenter"
+            android:src="@drawable/btn_playback_previous" />
+
+        <ImageButton
+            android:id="@+id/app_widget_large_play"
+            android:layout_width="0dp"
+            android:layout_height="@dimen/notification_expanded_button_height"
+            android:layout_weight="1"
+            android:background="?android:selectableItemBackground"
+            android:padding="@dimen/notification_expanded_button_padding"
+            android:scaleType="fitCenter"
+            android:src="@drawable/btn_playback_pause" />
+
+        <ImageButton
+            android:id="@+id/app_widget_large_next"
+            android:layout_width="0dp"
+            android:layout_height="@dimen/notification_expanded_button_height"
+            android:layout_weight="1"
+            android:background="?android:selectableItemBackground"
+            android:contentDescription="@string/accessibility_next"
+            android:padding="@dimen/notification_expanded_button_padding"
+            android:scaleType="fitCenter"
+            android:src="@drawable/btn_playback_next" />
+    </LinearLayout>
+
+</GridLayout>