From 656d11c882296d732e6bdab30ec26f84b99eba19 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Mon, 29 Nov 2010 17:15:47 -0800 Subject: [PATCH] Adding background protection to icons and apps button. Change-Id: I650f9135c0ce5bc2a6f7c5f878d470d6a85e9f7e --- res/drawable/shortcut_selector.xml | 4 +- res/layout-xlarge-land/application.xml | 2 +- res/layout-xlarge-land/launcher.xml | 8 ++- res/layout-xlarge-port/launcher.xml | 6 ++ res/values-xlarge/config.xml | 4 +- res/values-xlarge/styles.xml | 5 +- res/values/colors.xml | 2 +- res/values/styles.xml | 2 +- src/com/android/launcher2/BubbleTextView.java | 72 +++++++++++++------ .../android/launcher2/CacheableTextView.java | 34 +++++---- src/com/android/launcher2/Workspace.java | 9 ++- 11 files changed, 103 insertions(+), 45 deletions(-) diff --git a/res/drawable/shortcut_selector.xml b/res/drawable/shortcut_selector.xml index 884bccffea..8059f00867 100644 --- a/res/drawable/shortcut_selector.xml +++ b/res/drawable/shortcut_selector.xml @@ -19,7 +19,7 @@ --> - - + + diff --git a/res/layout-xlarge-land/application.xml b/res/layout-xlarge-land/application.xml index ed8fa8ccc5..2598e5a03c 100644 --- a/res/layout-xlarge-land/application.xml +++ b/res/layout-xlarge-land/application.xml @@ -15,4 +15,4 @@ --> \ No newline at end of file + style="@style/WorkspaceIcon.Landscape" /> diff --git a/res/layout-xlarge-land/launcher.xml b/res/layout-xlarge-land/launcher.xml index 0fc954b18e..7b66d7c22f 100644 --- a/res/layout-xlarge-land/launcher.xml +++ b/res/layout-xlarge-land/launcher.xml @@ -125,7 +125,13 @@ android:layout_toLeftOf="@id/configure_button" android:layout_marginLeft="@dimen/toolbar_button_spacing" android:layout_marginRight="@dimen/toolbar_button_spacing" - android:textSize="18dp" + android:textColor="#CCFFFFFF" + android:textSize="18sp" + + android:shadowColor="#A0000000" + android:shadowDx="0.0" + android:shadowDy="0.0" + android:shadowRadius="2.0" android:onClick="onClickAllAppsButton" android:focusable="true" diff --git a/res/layout-xlarge-port/launcher.xml b/res/layout-xlarge-port/launcher.xml index 088f08166e..c5691b8cbb 100644 --- a/res/layout-xlarge-port/launcher.xml +++ b/res/layout-xlarge-port/launcher.xml @@ -125,8 +125,14 @@ android:layout_toLeftOf="@id/configure_button" android:layout_marginLeft="@dimen/toolbar_button_spacing" android:layout_marginRight="@dimen/toolbar_button_spacing" + android:textColor="#CCFFFFFF" android:textSize="18dp" + android:shadowColor="#A0000000" + android:shadowDx="0.0" + android:shadowDy="0.0" + android:shadowRadius="2.0" + android:onClick="onClickAllAppsButton" android:focusable="true" android:clickable="true" /> diff --git a/res/values-xlarge/config.xml b/res/values-xlarge/config.xml index 3654753284..55a96f6e91 100644 --- a/res/values-xlarge/config.xml +++ b/res/values-xlarge/config.xml @@ -26,8 +26,8 @@ - 350 - 350 + 100 + 100