From d097a1880f2339705486d50cd8b33c6088fa9fa5 Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Wed, 17 Dec 2008 18:05:58 -0800 Subject: [PATCH] Code drop from //branches/cupcake/...@124589 --- AndroidManifest.xml | 92 ++-- res/drawable/google_logo.png | Bin 5953 -> 3361 bytes res/layout-land/application_boxed.xml | 8 +- res/layout-land/launcher.xml | 28 +- res/layout-land/live_folder_grid.xml | 49 ++ res/layout-land/live_folder_icon.xml | 21 + res/layout-port/application_boxed.xml | 8 +- res/layout-port/launcher.xml | 28 +- res/layout-port/live_folder_grid.xml | 49 ++ res/layout-port/live_folder_icon.xml | 21 + res/layout/application_list.xml | 70 +++ res/layout/live_folder_list.xml | 42 ++ res/layout/widget_search.xml | 12 +- res/values-de/strings.xml | 46 ++ res/values-ja/strings.xml | 46 ++ res/values/attrs.xml | 24 +- res/values/strings.xml | 45 +- res/values/styles.xml | 2 +- src/com/android/launcher/AddAdapter.java | 67 ++- src/com/android/launcher/ApplicationInfo.java | 24 +- src/com/android/launcher/BubbleTextView.java | 55 ++- src/com/android/launcher/CellLayout.java | 11 + src/com/android/launcher/DeleteZone.java | 14 +- .../android/launcher/FastBitmapDrawable.java | 73 +++ src/com/android/launcher/Folder.java | 19 +- src/com/android/launcher/FolderIcon.java | 5 +- src/com/android/launcher/FolderInfo.java | 5 + src/com/android/launcher/HandleView.java | 91 ++++ .../launcher/InstallShortcutReceiver.java | 28 +- src/com/android/launcher/ItemInfo.java | 32 +- src/com/android/launcher/Launcher.java | 311 +++++++------ .../android/launcher/LauncherApplication.java | 29 ++ src/com/android/launcher/LauncherModel.java | 352 ++++++++++---- .../android/launcher/LauncherProvider.java | 435 ++++++++++++++++++ .../android/launcher/LauncherSettings.java | 222 +++++++++ src/com/android/launcher/LiveFolder.java | 83 ++++ .../android/launcher/LiveFolderAdapter.java | 205 +++++++++ src/com/android/launcher/LiveFolderIcon.java | 76 +++ src/com/android/launcher/LiveFolderInfo.java | 75 +++ src/com/android/launcher/Search.java | 36 +- .../launcher/UninstallShortcutReceiver.java | 20 +- src/com/android/launcher/UserFolder.java | 19 +- src/com/android/launcher/UserFolderInfo.java | 10 +- src/com/android/launcher/Utilities.java | 61 ++- .../android/launcher/WallpaperChooser.java | 1 + src/com/android/launcher/Widget.java | 7 +- src/com/android/launcher/Workspace.java | 17 +- 47 files changed, 2521 insertions(+), 453 deletions(-) create mode 100644 res/layout-land/live_folder_grid.xml create mode 100644 res/layout-land/live_folder_icon.xml create mode 100644 res/layout-port/live_folder_grid.xml create mode 100644 res/layout-port/live_folder_icon.xml create mode 100644 res/layout/application_list.xml create mode 100644 res/layout/live_folder_list.xml create mode 100644 res/values-de/strings.xml create mode 100644 res/values-ja/strings.xml create mode 100644 src/com/android/launcher/FastBitmapDrawable.java create mode 100644 src/com/android/launcher/HandleView.java create mode 100644 src/com/android/launcher/LauncherApplication.java create mode 100644 src/com/android/launcher/LauncherProvider.java create mode 100644 src/com/android/launcher/LauncherSettings.java create mode 100644 src/com/android/launcher/LiveFolder.java create mode 100644 src/com/android/launcher/LiveFolderAdapter.java create mode 100644 src/com/android/launcher/LiveFolderIcon.java create mode 100644 src/com/android/launcher/LiveFolderInfo.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 812985191a..966848321b 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -17,41 +17,59 @@ ** limitations under the License. */ --> - + - - + + + + - - - + + + - - + + + + - + @@ -60,7 +78,8 @@ - @@ -70,21 +89,34 @@ - + - + + - + + + + + diff --git a/res/drawable/google_logo.png b/res/drawable/google_logo.png index 738abe013b174fccd314eae7469e5e2c00651e33..54fd5f96163a0a2f82ca82e559bd52d856fc2207 100644 GIT binary patch literal 3361 zcmV++4c_vJP)UdOw(V>fmj64O*p0!}PQn;-~9MS%(gq>89i2uJ}Lp|)x(T9xoz=8mAQ>F2{yK8%QXWu(BJI_0F-{+ol`rUD4va$1TN4hhsd#}FVIp6pDe&6pb z5kkQK_lMm3?#IAP4};+B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99eY8JT2w`!OmF-T=us>LP#?0Y=LQF_e3ZX5ae9 zWOeqq>9;QY*GOyTyUxhL2mLxB3PXp8vH%&3Ikf4Ug~7agJ?khm8(k!d!*Q*;AitqR z6o4B^X~$i(eb*ns&5S`Xi9rxJ1Kd;=w(H`+u`h$0C3$)J1u)&3Dy3c2REVS<_&SLL zKpTJ|Hyy#SzO0v)^Jx1Dj+KLv87UFCNis;>u@BP3-cKXvmXL4`({RBVgTWb~6_kjO z%2;^MhaN+-wu*dVGy~N|7_>mbp9MuV5OJb-^E=7>;`-EUa~&+k8hNLPq5Q6LwzU6) z1d)I&7GWZz;y>7Jzl!$vrp7lUfy#4)U)vF z4QR=rHG@_hL=22^0DRD3>dS^Y|MbezDI`&QDQ=yAoFQp|u@DgIYF8f{-mo(F0q(d< z*_}J@{6?y<^<%LN;cy$aor9k$BQl*vCTyM5N%l>}hvt}JhfKLfUs04Zx#(sYw0}49 z7Du|>74+J3Z`PMyeLN0Ur-@`wslX%IQLbwt45Li~&11~8E2e2!{l(Fn9@hQ4K4qAx zVv*Y@Sbd1x0W?zsunhyY3Snyj3ldxjAn8FQ9=xEw)~ruI=U3l;Rtc{Kh){{J1FKJ{ z=rXyExp`oI=uUuVc-Wb7prvD^2M(l4dp=so?>JJ(jP6XQhO)6;V1S05bU-SCCY1;o z)B}Hgs@=Zya;JIWCo*a*1B!uUPpimBswnN!UJB-3fa_iZ&~o}=I=4VZA?N0@O diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml index e93ef31d20..11a81fd8ee 100644 --- a/res/layout-land/launcher.xml +++ b/res/layout-land/launcher.xml @@ -16,6 +16,7 @@ - - - + + + @@ -42,19 +43,24 @@ android:layout_height="fill_parent" android:orientation="horizontal" - android:bottomOffset="7px" - android:handle="@+id/all_apps" - android:content="@+id/content"> - - + + + + launcher:direction="vertical" /> + + + + +