diff options
author | Daniel Sandler <dsandler@android.com> | 2010-04-07 16:47:43 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2010-04-08 15:51:28 -0400 |
commit | 1daa55f4f4bfc13dcb8bcf66d410f8a79ad05f5a (patch) | |
tree | 436a273df22d2af8f42aa7ac62e8555f3abf7057 /res | |
parent | e134a85136a6b4f2de03a4b2bf69e07c06a677d7 (diff) | |
download | Protips-1daa55f4f4bfc13dcb8bcf66d410f8a79ad05f5a.tar.gz |
Moving the new tips widget to the platform.
(Periodic animation removed to avoid the extra process.)
Bug: 2559083
Change-Id: I8270d03cb9fffd1ebf6d95ba2150fc474bec0471
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-hdpi/droid_widget.9.png | bin | 0 -> 2296 bytes | |||
-rw-r--r-- | res/drawable-hdpi/droidman_closed.png | bin | 0 -> 6435 bytes | |||
-rw-r--r-- | res/drawable-hdpi/droidman_down_closed.png | bin | 0 -> 6324 bytes | |||
-rw-r--r-- | res/drawable-hdpi/droidman_down_open.png | bin | 0 -> 6434 bytes | |||
-rw-r--r-- | res/drawable-hdpi/droidman_open.png | bin | 0 -> 6551 bytes | |||
-rw-r--r-- | res/drawable-hdpi/icon.png | bin | 0 -> 5629 bytes | |||
-rw-r--r-- | res/drawable-mdpi/droid_widget.9.png | bin | 0 -> 1279 bytes | |||
-rw-r--r-- | res/drawable-mdpi/droidman_closed.png | bin | 0 -> 6676 bytes | |||
-rw-r--r-- | res/drawable-mdpi/droidman_down_closed.png | bin | 0 -> 6749 bytes | |||
-rw-r--r-- | res/drawable-mdpi/droidman_down_open.png | bin | 0 -> 6747 bytes | |||
-rw-r--r-- | res/drawable-mdpi/droidman_open.png | bin | 0 -> 6713 bytes | |||
-rw-r--r-- | res/drawable-mdpi/icon.png | bin | 0 -> 3382 bytes | |||
-rw-r--r-- | res/layout/widget.xml | 73 | ||||
-rw-r--r-- | res/values/arrays.xml | 13 | ||||
-rw-r--r-- | res/values/strings.xml | 21 | ||||
-rw-r--r-- | res/values/styles.xml | 17 | ||||
-rw-r--r-- | res/xml/widget_build.xml | 21 |
17 files changed, 145 insertions, 0 deletions
diff --git a/res/drawable-hdpi/droid_widget.9.png b/res/drawable-hdpi/droid_widget.9.png Binary files differnew file mode 100644 index 0000000..c5d8f36 --- /dev/null +++ b/res/drawable-hdpi/droid_widget.9.png diff --git a/res/drawable-hdpi/droidman_closed.png b/res/drawable-hdpi/droidman_closed.png Binary files differnew file mode 100644 index 0000000..2421685 --- /dev/null +++ b/res/drawable-hdpi/droidman_closed.png diff --git a/res/drawable-hdpi/droidman_down_closed.png b/res/drawable-hdpi/droidman_down_closed.png Binary files differnew file mode 100644 index 0000000..5ce9f73 --- /dev/null +++ b/res/drawable-hdpi/droidman_down_closed.png diff --git a/res/drawable-hdpi/droidman_down_open.png b/res/drawable-hdpi/droidman_down_open.png Binary files differnew file mode 100644 index 0000000..d251189 --- /dev/null +++ b/res/drawable-hdpi/droidman_down_open.png diff --git a/res/drawable-hdpi/droidman_open.png b/res/drawable-hdpi/droidman_open.png Binary files differnew file mode 100644 index 0000000..6befb31 --- /dev/null +++ b/res/drawable-hdpi/droidman_open.png diff --git a/res/drawable-hdpi/icon.png b/res/drawable-hdpi/icon.png Binary files differnew file mode 100644 index 0000000..17ef4a4 --- /dev/null +++ b/res/drawable-hdpi/icon.png diff --git a/res/drawable-mdpi/droid_widget.9.png b/res/drawable-mdpi/droid_widget.9.png Binary files differnew file mode 100644 index 0000000..c9646e6 --- /dev/null +++ b/res/drawable-mdpi/droid_widget.9.png diff --git a/res/drawable-mdpi/droidman_closed.png b/res/drawable-mdpi/droidman_closed.png Binary files differnew file mode 100644 index 0000000..0468dcb --- /dev/null +++ b/res/drawable-mdpi/droidman_closed.png diff --git a/res/drawable-mdpi/droidman_down_closed.png b/res/drawable-mdpi/droidman_down_closed.png Binary files differnew file mode 100644 index 0000000..a1ebf44 --- /dev/null +++ b/res/drawable-mdpi/droidman_down_closed.png diff --git a/res/drawable-mdpi/droidman_down_open.png b/res/drawable-mdpi/droidman_down_open.png Binary files differnew file mode 100644 index 0000000..4c81851 --- /dev/null +++ b/res/drawable-mdpi/droidman_down_open.png diff --git a/res/drawable-mdpi/droidman_open.png b/res/drawable-mdpi/droidman_open.png Binary files differnew file mode 100644 index 0000000..e30f79f --- /dev/null +++ b/res/drawable-mdpi/droidman_open.png diff --git a/res/drawable-mdpi/icon.png b/res/drawable-mdpi/icon.png Binary files differnew file mode 100644 index 0000000..a003e9d --- /dev/null +++ b/res/drawable-mdpi/icon.png diff --git a/res/layout/widget.xml b/res/layout/widget.xml new file mode 100644 index 0000000..5e7d3df --- /dev/null +++ b/res/layout/widget.xml @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 The Android Open Source 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. +--> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/widget" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:padding="8dip" + > + + <ImageView + android:id="@+id/bugdroid" + android:src="@drawable/droidman_down_closed" + android:scaleType="center" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_centerVertical="true" + /> + <RelativeLayout + android:id="@+id/tip_bubble" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_toLeftOf="@id/bugdroid" + android:layout_centerVertical="true" + android:gravity="center_vertical|left" + android:layout_marginRight="2dip" + android:visibility="invisible" + android:background="@drawable/droid_widget" + > + <TextView + android:id="@+id/tip_header" + style="@style/TipText.Header" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + android:layout_marginTop="2dip" + android:layout_marginLeft="3dip" + /> + <TextView + android:id="@+id/tip_message" + style="@style/TipText.Message" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@id/tip_header" + android:layout_marginTop="2sp" + android:layout_marginLeft="3dip" + /> + <TextView + android:id="@+id/tip_footer" + style="@style/TipText.Footer" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" + /> + </RelativeLayout> +</RelativeLayout> diff --git a/res/values/arrays.xml b/res/values/arrays.xml new file mode 100644 index 0000000..e92de5b --- /dev/null +++ b/res/values/arrays.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <string-array name="titles"> + <item>To add shortcuts or widgets:</item> + <item>To move a shortcut or widget:</item> + <item>To remove a shortcut or widget:</item> + </string-array> + <string-array name="tips"> + <item>Touch & hold an empty spot on a Home screen.</item> + <item>Touch & hold an item and then drag it to a new spot.</item> + <item>Touch & hold an item and then drag it to the Trash Can icon.</item> + </string-array> +</resources> diff --git a/res/values/strings.xml b/res/values/strings.xml new file mode 100644 index 0000000..ad8d300 --- /dev/null +++ b/res/values/strings.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 The Android Open Source 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. +--> + +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string name="app_name">Protips Widget</string> + <string name="widget_name">Android Tips</string> + <string name="pager_footer"><xliff:g id="curPage" example="1">%1$d</xliff:g> of <xliff:g id="numPages" example="2">%2$d</xliff:g></string> +</resources> diff --git a/res/values/styles.xml b/res/values/styles.xml new file mode 100644 index 0000000..bb5410c --- /dev/null +++ b/res/values/styles.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <style name="TipText"> + <item name="android:textSize">14sp</item> + <item name="android:textColor">@android:color/white</item> + <item name="android:textStyle">normal</item> + </style> + <style name="TipText.Header"> + <item name="android:textStyle">bold</item> + </style> + <style name="TipText.Message"> + <item name="android:lineSpacingExtra">1sp</item> + </style> + <style name="TipText.Footer"> + <item name="android:textSize">11sp</item> + </style> +</resources> diff --git a/res/xml/widget_build.xml b/res/xml/widget_build.xml new file mode 100644 index 0000000..c402aac --- /dev/null +++ b/res/xml/widget_build.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 The Android Open Source 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. +--> + +<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" + android:minWidth="294dip" + android:minHeight="72dip" + android:updatePeriodMillis="0" + android:initialLayout="@layout/widget" /> |