summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2010-09-26 17:26:45 -0700
committerWinson Chung <winsonc@google.com>2010-09-27 09:34:15 -0700
commitd0d43010c7a091b6ade407d30e490527a8d16120 (patch)
tree164907441c3ca3b84a08dc0da6ec12b4707c4635 /res
parent28750fba6a2d141eb9a1e566718c17236030b815 (diff)
downloadandroid_packages_apps_Trebuchet-d0d43010c7a091b6ade407d30e490527a8d16120.tar.gz
android_packages_apps_Trebuchet-d0d43010c7a091b6ade407d30e490527a8d16120.tar.bz2
android_packages_apps_Trebuchet-d0d43010c7a091b6ade407d30e490527a8d16120.zip
Adding tap-to-add behaviour to the customization drawer.
Change-Id: I5a0863a8df2a0b4855112eb29b40b6e7dd550db9
Diffstat (limited to 'res')
-rw-r--r--res/layout-xlarge/all_apps_paged_view_application.xml2
-rw-r--r--res/layout-xlarge/customize_paged_view_item.xml12
-rw-r--r--res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml6
-rw-r--r--res/layout-xlarge/customize_paged_view_widget.xml18
-rw-r--r--res/values/attrs.xml9
5 files changed, 36 insertions, 11 deletions
diff --git a/res/layout-xlarge/all_apps_paged_view_application.xml b/res/layout-xlarge/all_apps_paged_view_application.xml
index bee13d694..8e53e0656 100644
--- a/res/layout-xlarge/all_apps_paged_view_application.xml
+++ b/res/layout-xlarge/all_apps_paged_view_application.xml
@@ -23,7 +23,7 @@
launcher:checkedBlurColor="#FFBBE83C"
launcher:checkedOutlineColor="#FF8CD2FF"
- android:id="@+id/name"
+ android:id="@+id/application_icon"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
diff --git a/res/layout-xlarge/customize_paged_view_item.xml b/res/layout-xlarge/customize_paged_view_item.xml
index 55779e50f..e42734506 100644
--- a/res/layout-xlarge/customize_paged_view_item.xml
+++ b/res/layout-xlarge/customize_paged_view_item.xml
@@ -14,8 +14,16 @@
limitations under the License.
-->
-<com.android.launcher2.PagedViewIcon xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/name"
+<com.android.launcher2.PagedViewIcon
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+
+ launcher:blurColor="#FF6B8CF0"
+ launcher:outlineColor="#FF8CD2FF"
+ launcher:checkedBlurColor="#FFBBE83C"
+ launcher:checkedOutlineColor="#FF8CD2FF"
+
+ android:id="@+id/customize_icon"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
diff --git a/res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml b/res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml
index 51f624a03..6112532db 100644
--- a/res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml
+++ b/res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml
@@ -14,8 +14,10 @@
limitations under the License.
-->
-<TextView xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/name"
+<TextView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+
+ android:id="@+id/wallpaper_icon"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
diff --git a/res/layout-xlarge/customize_paged_view_widget.xml b/res/layout-xlarge/customize_paged_view_widget.xml
index 4d70a1268..e8f4ac904 100644
--- a/res/layout-xlarge/customize_paged_view_widget.xml
+++ b/res/layout-xlarge/customize_paged_view_widget.xml
@@ -13,7 +13,10 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<com.android.launcher2.PagedViewWidgetIcon
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:paddingLeft="12.5dp"
@@ -21,11 +24,14 @@
android:paddingTop="40dp"
android:paddingBottom="50dp"
android:gravity="top"
- android:orientation="vertical">
+ android:orientation="vertical"
+
+ launcher:checkedBlurColor="#FFDAFF71"
+ launcher:checkedOutlineColor="#FFCFFF9C">
<!-- The icon of the widget. -->
<ImageView
- android:id="@+id/icon"
+ android:id="@+id/widget_preview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0"
@@ -42,7 +48,7 @@
<!-- The name of the widget. -->
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/name"
+ android:id="@+id/widget_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left"
@@ -60,7 +66,7 @@
<!-- The original dimensions of the widget (can't be the same text as above due to different
style. -->
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/dims"
+ android:id="@+id/widget_dims"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left"
@@ -71,4 +77,4 @@
android:shadowDx="0.0"
android:shadowDy="1.0"
android:shadowRadius="1.0" />
-</LinearLayout>
+</com.android.launcher2.PagedViewWidgetIcon>
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
index bb1b85f3b..3e2a8e9d7 100644
--- a/res/values/attrs.xml
+++ b/res/values/attrs.xml
@@ -68,6 +68,15 @@
<attr name="checkedOutlineColor" format="color" />
</declare-styleable>
+ <!-- PagedViewWidgetIcon specific attributes. These attributes are used to
+ customize a PagedViewWidgetIcon view in XML files. -->
+ <declare-styleable name="PagedViewWidgetIcon">
+ <!-- The checked blur color of the holographic outline -->
+ <attr name="checkedBlurColor" />
+ <!-- The checked outline color of the holographic outline -->
+ <attr name="checkedOutlineColor" />
+ </declare-styleable>
+
<!-- PagedView specific attributes. These attributes are used to customize
a PagedView view in XML files. -->
<declare-styleable name="PagedView">