Repo created
This commit is contained in:
parent
c49f951a12
commit
9d6cbf6fba
323 changed files with 41128 additions and 0 deletions
106
res/layout-v11/app_widget_recents.xml
Normal file
106
res/layout-v11/app_widget_recents.xml
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="0dp"
|
||||
android:background="@color/action_bar_color" >
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/app_widget_recents_action_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/app_widget_recents_action_bar_height" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/app_widget_recents_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="?android:selectableItemBackground"
|
||||
android:contentDescription="@string/app_name"
|
||||
android:padding="@dimen/app_widget_recents_action_bar_item_padding"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@drawable/ic_launcher" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_widget_recents_app_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@+id/app_widget_recents_icon"
|
||||
android:text="@string/page_recent"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/text_size_medium" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/app_widget_recents_previous"
|
||||
android:layout_width="@dimen/app_widget_recents_action_bar_height"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toLeftOf="@+id/app_widget_recents_play"
|
||||
android:background="?android:selectableItemBackground"
|
||||
android:contentDescription="@null"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/btn_playback_previous" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/app_widget_recents_play"
|
||||
android:layout_width="@dimen/app_widget_recents_action_bar_height"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toLeftOf="@+id/app_widget_recents_next"
|
||||
android:background="?android:selectableItemBackground"
|
||||
android:contentDescription="@null"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/btn_playback_play" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/app_widget_recents_next"
|
||||
android:layout_width="@dimen/app_widget_recents_action_bar_height"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="?android:selectableItemBackground"
|
||||
android:contentDescription="@null"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/btn_playback_next" />
|
||||
</RelativeLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/colorstrip"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/colorstrip_height"
|
||||
android:layout_below="@+id/app_widget_recents_action_bar"
|
||||
android:background="@color/holo_blue_light"
|
||||
android:contentDescription="@null" />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@+id/colorstrip"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@drawable/appwidget_bg" >
|
||||
|
||||
<ListView
|
||||
android:id="@+id/app_widget_recents_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@null"
|
||||
android:cacheColorHint="@color/transparent" />
|
||||
</FrameLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
61
res/layout-v11/app_widget_recents_items.xml
Normal file
61
res/layout-v11/app_widget_recents_items.xml
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/app_widget_recents_items"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
tools:ignore="ContentDescription" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/app_widget_recents_base_image"
|
||||
android:layout_width="@dimen/item_normal_height"
|
||||
android:layout_height="@dimen/item_normal_height"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:scaleType="fitXY" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/item_normal_height"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_toRightOf="@+id/app_widget_recents_base_image"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="@dimen/list_preferred_item_padding" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_widget_recents_line_one"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:singleLine="true"
|
||||
android:textSize="@dimen/text_size_medium"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_widget_recents_line_two"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/app_widget_recents_line_one"
|
||||
android:layout_marginTop="@dimen/list_item_line_two_margin_top"
|
||||
android:singleLine="true"
|
||||
android:textSize="@dimen/text_size_small" />
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
70
res/layout-v11/notification_template_base.xml
Normal file
70
res/layout-v11/notification_template_base.xml
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/notification_base"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
tools:ignore="ContentDescription" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/notification_base_image"
|
||||
android:layout_width="@dimen/notification_big_icon_width"
|
||||
android:layout_height="@dimen/notification_big_icon_height"
|
||||
android:background="@drawable/default_artwork"
|
||||
android:gravity="center" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="@dimen/notification_info_container_padding_left"
|
||||
android:paddingBottom="@dimen/notification_info_container_padding_bottom" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/notification_base_line_one"
|
||||
style="@style/NotificationText"
|
||||
android:textAppearance="@android:style/TextAppearance.StatusBar.EventContent.Title" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/notification_base_line_two"
|
||||
style="@style/NotificationText"
|
||||
android:textAppearance="@android:style/TextAppearance.StatusBar.EventContent" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/notification_base_previous"
|
||||
style="@style/NotificationAction.Previous" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/notification_base_play"
|
||||
style="@style/NotificationAction.Play" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/notification_base_next"
|
||||
style="@style/NotificationAction.Next" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/notification_base_collapse"
|
||||
style="@style/NotificationAction.Collapse" />
|
||||
|
||||
</LinearLayout>
|
||||
Loading…
Add table
Add a link
Reference in a new issue