1 <?xml version="1.0" encoding="utf-8"?>
3 Copyright (C) 2012 Andrew Neal
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
9 http://www.apache.org/licenses/LICENSE-2.0
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.
17 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
18 android:layout_width="match_parent"
19 android:layout_height="match_parent"
20 android:layout_margin="0dp"
21 android:background="@color/action_bar_color" >
24 android:id="@+id/app_widget_recents_action_bar"
25 android:layout_width="match_parent"
26 android:layout_height="@dimen/app_widget_recents_action_bar_height" >
29 android:id="@+id/app_widget_recents_icon"
30 android:layout_width="wrap_content"
31 android:layout_height="match_parent"
32 android:layout_centerVertical="true"
33 android:background="?android:selectableItemBackground"
34 android:contentDescription="@string/app_name"
35 android:padding="@dimen/app_widget_recents_action_bar_item_padding"
36 android:scaleType="centerInside"
37 android:src="@drawable/ic_launcher" />
40 android:id="@+id/app_widget_recents_app_name"
41 android:layout_width="wrap_content"
42 android:layout_height="wrap_content"
43 android:layout_centerVertical="true"
44 android:layout_toRightOf="@+id/app_widget_recents_icon"
45 android:text="@string/page_recent"
46 android:textColor="@color/white"
47 android:textSize="@dimen/text_size_medium" />
50 android:id="@+id/app_widget_recents_previous"
51 android:layout_width="@dimen/app_widget_recents_action_bar_height"
52 android:layout_height="match_parent"
53 android:layout_centerVertical="true"
54 android:layout_toLeftOf="@+id/app_widget_recents_play"
55 android:background="?android:selectableItemBackground"
56 android:contentDescription="@null"
57 android:scaleType="center"
58 android:src="@drawable/btn_playback_previous" />
61 android:id="@+id/app_widget_recents_play"
62 android:layout_width="@dimen/app_widget_recents_action_bar_height"
63 android:layout_height="match_parent"
64 android:layout_centerVertical="true"
65 android:layout_toLeftOf="@+id/app_widget_recents_next"
66 android:background="?android:selectableItemBackground"
67 android:contentDescription="@null"
68 android:scaleType="center"
69 android:src="@drawable/btn_playback_play" />
72 android:id="@+id/app_widget_recents_next"
73 android:layout_width="@dimen/app_widget_recents_action_bar_height"
74 android:layout_height="match_parent"
75 android:layout_alignParentRight="true"
76 android:layout_centerVertical="true"
77 android:background="?android:selectableItemBackground"
78 android:contentDescription="@null"
79 android:scaleType="center"
80 android:src="@drawable/btn_playback_next" />
84 android:id="@+id/colorstrip"
85 android:layout_width="match_parent"
86 android:layout_height="@dimen/colorstrip_height"
87 android:layout_below="@+id/app_widget_recents_action_bar"
88 android:background="@color/holo_blue_light"
89 android:contentDescription="@null" />
92 android:layout_width="match_parent"
93 android:layout_height="match_parent"
94 android:layout_below="@+id/colorstrip"
95 android:layout_centerVertical="true"
96 android:background="@drawable/appwidget_bg" >
99 android:id="@+id/app_widget_recents_list"
100 android:layout_width="match_parent"
101 android:layout_height="match_parent"
102 android:background="@null"
103 android:cacheColorHint="@color/transparent" />