From 46af2e89164b391b7a0049c6ce9048a2b7a7f644 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Mon, 9 May 2011 16:00:53 -0700 Subject: [PATCH] Adding Wallpapers tab. Change-Id: Ic42bec30a4a3a4f8745bd1b5b164f33cc9a6c96f --- res/drawable-hdpi/wallpaper_divider.png | Bin 0 -> 277 bytes res/drawable-mdpi/wallpaper_divider.png | Bin 0 -> 115 bytes res/layout/apps_customize_pane.xml | 4 +- res/layout/apps_customize_wallpaper.xml | 68 +++++ res/layout/apps_customize_widget.xml | 1 + res/values-land/dimens.xml | 2 + res/values-port/dimens.xml | 2 + res/values-xlarge/styles.xml | 1 + res/values/attrs.xml | 6 +- res/values/styles.xml | 6 +- .../launcher2/AppsCustomizePagedView.java | 264 +++++++++++++++--- .../launcher2/AppsCustomizeTabHost.java | 8 + .../android/launcher2/PagedViewWidget.java | 6 +- 13 files changed, 327 insertions(+), 41 deletions(-) create mode 100644 res/drawable-hdpi/wallpaper_divider.png create mode 100644 res/drawable-mdpi/wallpaper_divider.png create mode 100644 res/layout/apps_customize_wallpaper.xml diff --git a/res/drawable-hdpi/wallpaper_divider.png b/res/drawable-hdpi/wallpaper_divider.png new file mode 100644 index 0000000000000000000000000000000000000000..2f92d6004961a0c67db97b1aa8f7f637f6ac7fc4 GIT binary patch literal 277 zcmeAS@N?(olHy`uVBq!ia0vp^Oh9bJ!3HGD&Tw@CDYhhUcNd2LAh=-f^2tCE&H|6f zVj%4S#%?FG?LdNM1&--J8mymTYnBH{g`}s8V~E7%r14wv~ZF#SUK| z6b-rgDVb@NPz{E|6H_V+Po~-c6^VMfIEGZ*N-8SuzklWk155J^1`Y!T*%-!0y8g1PKm`n* Lu6{1-oD!M + launcher:widgetCountY="@integer/apps_customize_widget_cell_count_y" + launcher:wallpaperCountX="@integer/apps_customize_wallpaper_cell_count_x" + launcher:wallpaperCountY="@integer/apps_customize_wallpaper_cell_count_y" /> diff --git a/res/layout/apps_customize_wallpaper.xml b/res/layout/apps_customize_wallpaper.xml new file mode 100644 index 0000000000..d93825f8c1 --- /dev/null +++ b/res/layout/apps_customize_wallpaper.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + diff --git a/res/layout/apps_customize_widget.xml b/res/layout/apps_customize_widget.xml index 6ba65c8117..9d0764cbbc 100644 --- a/res/layout/apps_customize_widget.xml +++ b/res/layout/apps_customize_widget.xml @@ -34,6 +34,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" + android:paddingBottom="5dp" android:adjustViewBounds="true" android:scaleType="fitStart" /> diff --git a/res/values-land/dimens.xml b/res/values-land/dimens.xml index 9b8c92e1bc..e1b0214285 100644 --- a/res/values-land/dimens.xml +++ b/res/values-land/dimens.xml @@ -34,4 +34,6 @@ 0dp 3 1 + 3 + 1 diff --git a/res/values-port/dimens.xml b/res/values-port/dimens.xml index 98e3fc47d7..7d50c1a0c7 100644 --- a/res/values-port/dimens.xml +++ b/res/values-port/dimens.xml @@ -33,4 +33,6 @@ 40dp 2 2 + 1 + 1 diff --git a/res/values-xlarge/styles.xml b/res/values-xlarge/styles.xml index 96d9cc9ffd..bcbe038ac6 100644 --- a/res/values-xlarge/styles.xml +++ b/res/values-xlarge/styles.xml @@ -47,6 +47,7 @@ 40dp 15dp 20dp + 20sp