From 80baf5a6b3c62a62265f626d43d1167783c94131 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Mon, 9 Aug 2010 16:03:15 -0700 Subject: Adding paging for the widget/shortcut/folder customization area and fixing bugs. Adding pages for customization drawer with initial implementation of proposed flow layout for widgets. Fixes for keeping all apps, and widgets in sync with Launcher Model, optimizations for reloading all apps pages when invalidating. Adding some animations for tab transitions and feedback when long pressing to add certain items. Change-Id: I8d51749f3a91c964bed35681f3a9192200b0d93e --- res/anim/paged_view_click_feedback.xml | 23 +++++++++++++++ res/drawable/default_widget_preview.9.png | Bin 541 -> 3976 bytes .../all_apps_paged_view_application.xml | 3 +- res/layout-xlarge/customize_paged_view_item.xml | 30 +++++++++++++++++++ .../customize_paged_view_wallpaper_placeholder.xml | 32 +++++++++++++++++++++ res/layout-xlarge/customize_paged_view_widget.xml | 30 +++++++++++++++++++ res/layout-xlarge/launcher.xml | 30 ++++++------------- 7 files changed, 125 insertions(+), 23 deletions(-) create mode 100644 res/anim/paged_view_click_feedback.xml create mode 100644 res/layout-xlarge/customize_paged_view_item.xml create mode 100644 res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml create mode 100644 res/layout-xlarge/customize_paged_view_widget.xml (limited to 'res') diff --git a/res/anim/paged_view_click_feedback.xml b/res/anim/paged_view_click_feedback.xml new file mode 100644 index 000000000..786d9744a --- /dev/null +++ b/res/anim/paged_view_click_feedback.xml @@ -0,0 +1,23 @@ + + + + diff --git a/res/drawable/default_widget_preview.9.png b/res/drawable/default_widget_preview.9.png index e966b1b79..b3ddada41 100644 Binary files a/res/drawable/default_widget_preview.9.png and b/res/drawable/default_widget_preview.9.png differ diff --git a/res/layout-xlarge/all_apps_paged_view_application.xml b/res/layout-xlarge/all_apps_paged_view_application.xml index 98c27377d..74487656c 100644 --- a/res/layout-xlarge/all_apps_paged_view_application.xml +++ b/res/layout-xlarge/all_apps_paged_view_application.xml @@ -18,12 +18,13 @@ android:id="@+id/name" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_gravity="center_horizontal" + android:gravity="center_horizontal" android:textColor="#FFFFFFFF" android:shadowColor="#FF000000" android:shadowDx="0.0" android:shadowDy="1.0" + android:shadowRadius="1.0" android:maxLines="2" android:fadingEdge="horizontal" /> diff --git a/res/layout-xlarge/customize_paged_view_item.xml b/res/layout-xlarge/customize_paged_view_item.xml new file mode 100644 index 000000000..74487656c --- /dev/null +++ b/res/layout-xlarge/customize_paged_view_item.xml @@ -0,0 +1,30 @@ + + + + diff --git a/res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml b/res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml new file mode 100644 index 000000000..df73bcdc7 --- /dev/null +++ b/res/layout-xlarge/customize_paged_view_wallpaper_placeholder.xml @@ -0,0 +1,32 @@ + + + + diff --git a/res/layout-xlarge/customize_paged_view_widget.xml b/res/layout-xlarge/customize_paged_view_widget.xml new file mode 100644 index 000000000..74487656c --- /dev/null +++ b/res/layout-xlarge/customize_paged_view_widget.xml @@ -0,0 +1,30 @@ + + + + diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index a1879efa6..3e00381d8 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -26,7 +26,7 @@ layout="@layout/all_apps_tabbed" android:id="@+id/all_apps_view" android:layout_width="match_parent" - android:layout_height="500dip" + android:layout_height="550dip" android:layout_gravity="top"/> @@ -112,38 +112,24 @@ + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:tabStripEnabled="false" + android:paddingBottom="10dp" /> - - - - -- cgit v1.2.3