diff --git a/res/drawable-hdpi/app_market_generic.png b/res/drawable-hdpi/app_market_generic.png deleted file mode 100644 index 117453c20f..0000000000 Binary files a/res/drawable-hdpi/app_market_generic.png and /dev/null differ diff --git a/res/drawable-hdpi/default_widget_preview_holo.9.png b/res/drawable-hdpi/default_widget_preview_holo.9.png new file mode 100644 index 0000000000..ecf5deb12b Binary files /dev/null and b/res/drawable-hdpi/default_widget_preview_holo.9.png differ diff --git a/res/drawable-hdpi/gardening_crosshairs.png b/res/drawable-hdpi/gardening_crosshairs.png index 409bb5de78..5f83592eff 100644 Binary files a/res/drawable-hdpi/gardening_crosshairs.png and b/res/drawable-hdpi/gardening_crosshairs.png differ diff --git a/res/drawable-hdpi/homescreen_blue_normal_holo.9.png b/res/drawable-hdpi/homescreen_blue_normal_holo.9.png new file mode 100644 index 0000000000..ece2afd5bd Binary files /dev/null and b/res/drawable-hdpi/homescreen_blue_normal_holo.9.png differ diff --git a/res/drawable-hdpi/homescreen_blue_strong_holo.9.png b/res/drawable-hdpi/homescreen_blue_strong_holo.9.png new file mode 100644 index 0000000000..34071076d5 Binary files /dev/null and b/res/drawable-hdpi/homescreen_blue_strong_holo.9.png differ diff --git a/res/drawable-hdpi/homescreen_green_normal_holo.9.png b/res/drawable-hdpi/homescreen_green_normal_holo.9.png new file mode 100644 index 0000000000..7332c3b374 Binary files /dev/null and b/res/drawable-hdpi/homescreen_green_normal_holo.9.png differ diff --git a/res/drawable-hdpi/homescreen_green_strong_holo.9.png b/res/drawable-hdpi/homescreen_green_strong_holo.9.png new file mode 100644 index 0000000000..190c6cce53 Binary files /dev/null and b/res/drawable-hdpi/homescreen_green_strong_holo.9.png differ diff --git a/res/drawable-hdpi/homescreen_large_blue.9.png b/res/drawable-hdpi/homescreen_large_blue.9.png deleted file mode 100644 index 416514dbe5..0000000000 Binary files a/res/drawable-hdpi/homescreen_large_blue.9.png and /dev/null differ diff --git a/res/drawable-hdpi/homescreen_large_blue_strong.9.png b/res/drawable-hdpi/homescreen_large_blue_strong.9.png deleted file mode 100644 index d7e32e796e..0000000000 Binary files a/res/drawable-hdpi/homescreen_large_blue_strong.9.png and /dev/null differ diff --git a/res/drawable-hdpi/homescreen_large_green.9.png b/res/drawable-hdpi/homescreen_large_green.9.png deleted file mode 100644 index 60042c2dd7..0000000000 Binary files a/res/drawable-hdpi/homescreen_large_green.9.png and /dev/null differ diff --git a/res/drawable-hdpi/homescreen_large_green_strong.9.png b/res/drawable-hdpi/homescreen_large_green_strong.9.png deleted file mode 100644 index c40b98ee27..0000000000 Binary files a/res/drawable-hdpi/homescreen_large_green_strong.9.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_home_delete_holo_dark.png b/res/drawable-hdpi/ic_home_delete_holo_dark.png deleted file mode 100644 index 9d642786fd..0000000000 Binary files a/res/drawable-hdpi/ic_home_delete_holo_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_home_delete_hover_holo_dark.png b/res/drawable-hdpi/ic_home_delete_hover_holo_dark.png deleted file mode 100644 index 60d5b15df0..0000000000 Binary files a/res/drawable-hdpi/ic_home_delete_hover_holo_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_home_info_holo_dark.png b/res/drawable-hdpi/ic_home_info_holo_dark.png deleted file mode 100644 index 02df4e1cfb..0000000000 Binary files a/res/drawable-hdpi/ic_home_info_holo_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_launcher_info_active_holo.png b/res/drawable-hdpi/ic_launcher_info_active_holo.png new file mode 100644 index 0000000000..83ca112527 Binary files /dev/null and b/res/drawable-hdpi/ic_launcher_info_active_holo.png differ diff --git a/res/drawable-hdpi/ic_launcher_info_normal_holo.png b/res/drawable-hdpi/ic_launcher_info_normal_holo.png new file mode 100644 index 0000000000..25fb1ac4ca Binary files /dev/null and b/res/drawable-hdpi/ic_launcher_info_normal_holo.png differ diff --git a/res/drawable-hdpi/ic_launcher_market_holo.png b/res/drawable-hdpi/ic_launcher_market_holo.png new file mode 100644 index 0000000000..dc7825114d Binary files /dev/null and b/res/drawable-hdpi/ic_launcher_market_holo.png differ diff --git a/res/drawable-hdpi/ic_launcher_trashcan_active_holo.png b/res/drawable-hdpi/ic_launcher_trashcan_active_holo.png new file mode 100644 index 0000000000..51f02987a5 Binary files /dev/null and b/res/drawable-hdpi/ic_launcher_trashcan_active_holo.png differ diff --git a/res/drawable-hdpi/ic_launcher_trashcan_normal_holo.png b/res/drawable-hdpi/ic_launcher_trashcan_normal_holo.png new file mode 100644 index 0000000000..27a4b5e9db Binary files /dev/null and b/res/drawable-hdpi/ic_launcher_trashcan_normal_holo.png differ diff --git a/res/drawable-hdpi/page_hover_left.9.png b/res/drawable-hdpi/page_hover_left.9.png deleted file mode 100644 index 1bf156546c..0000000000 Binary files a/res/drawable-hdpi/page_hover_left.9.png and /dev/null differ diff --git a/res/drawable-hdpi/page_hover_left_holo.9.png b/res/drawable-hdpi/page_hover_left_holo.9.png new file mode 100644 index 0000000000..0f405a53e8 Binary files /dev/null and b/res/drawable-hdpi/page_hover_left_holo.9.png differ diff --git a/res/drawable-hdpi/page_hover_right.9.png b/res/drawable-hdpi/page_hover_right.9.png deleted file mode 100644 index 7995f6949d..0000000000 Binary files a/res/drawable-hdpi/page_hover_right.9.png and /dev/null differ diff --git a/res/drawable-hdpi/page_hover_right_holo.9.png b/res/drawable-hdpi/page_hover_right_holo.9.png new file mode 100644 index 0000000000..b7b4c56b34 Binary files /dev/null and b/res/drawable-hdpi/page_hover_right_holo.9.png differ diff --git a/res/drawable-mdpi/app_market_generic.png b/res/drawable-mdpi/app_market_generic.png deleted file mode 100644 index 6eb549703e..0000000000 Binary files a/res/drawable-mdpi/app_market_generic.png and /dev/null differ diff --git a/res/drawable-mdpi/default_widget_preview.9.png b/res/drawable-mdpi/default_widget_preview.9.png deleted file mode 100644 index ed9c6eeac6..0000000000 Binary files a/res/drawable-mdpi/default_widget_preview.9.png and /dev/null differ diff --git a/res/drawable-mdpi/default_widget_preview_holo.9.png b/res/drawable-mdpi/default_widget_preview_holo.9.png new file mode 100644 index 0000000000..d8e11966f9 Binary files /dev/null and b/res/drawable-mdpi/default_widget_preview_holo.9.png differ diff --git a/res/drawable-mdpi/gardening_crosshairs.png b/res/drawable-mdpi/gardening_crosshairs.png index 338c832cb3..2845fe49ec 100644 Binary files a/res/drawable-mdpi/gardening_crosshairs.png and b/res/drawable-mdpi/gardening_crosshairs.png differ diff --git a/res/drawable-mdpi/homescreen_blue_normal_holo.9.png b/res/drawable-mdpi/homescreen_blue_normal_holo.9.png new file mode 100644 index 0000000000..fef82bba2b Binary files /dev/null and b/res/drawable-mdpi/homescreen_blue_normal_holo.9.png differ diff --git a/res/drawable-mdpi/homescreen_blue_strong_holo.9.png b/res/drawable-mdpi/homescreen_blue_strong_holo.9.png new file mode 100644 index 0000000000..fdd9dbb033 Binary files /dev/null and b/res/drawable-mdpi/homescreen_blue_strong_holo.9.png differ diff --git a/res/drawable-mdpi/homescreen_green_normal_holo.9.png b/res/drawable-mdpi/homescreen_green_normal_holo.9.png new file mode 100644 index 0000000000..dad34d86cf Binary files /dev/null and b/res/drawable-mdpi/homescreen_green_normal_holo.9.png differ diff --git a/res/drawable-mdpi/homescreen_green_strong_holo.9.png b/res/drawable-mdpi/homescreen_green_strong_holo.9.png new file mode 100644 index 0000000000..901bf4cf97 Binary files /dev/null and b/res/drawable-mdpi/homescreen_green_strong_holo.9.png differ diff --git a/res/drawable-mdpi/homescreen_large_blue.9.png b/res/drawable-mdpi/homescreen_large_blue.9.png deleted file mode 100644 index 5e7e61f274..0000000000 Binary files a/res/drawable-mdpi/homescreen_large_blue.9.png and /dev/null differ diff --git a/res/drawable-mdpi/homescreen_large_green.9.png b/res/drawable-mdpi/homescreen_large_green.9.png deleted file mode 100644 index 2f83bac7de..0000000000 Binary files a/res/drawable-mdpi/homescreen_large_green.9.png and /dev/null differ diff --git a/res/drawable-mdpi/homescreen_large_green_strong.9.png b/res/drawable-mdpi/homescreen_large_green_strong.9.png deleted file mode 100644 index 1e145029bd..0000000000 Binary files a/res/drawable-mdpi/homescreen_large_green_strong.9.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_home_delete_holo_dark.png b/res/drawable-mdpi/ic_home_delete_holo_dark.png deleted file mode 100644 index 647fd8088b..0000000000 Binary files a/res/drawable-mdpi/ic_home_delete_holo_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_home_delete_hover_holo_dark.png b/res/drawable-mdpi/ic_home_delete_hover_holo_dark.png deleted file mode 100644 index 06b62e2f29..0000000000 Binary files a/res/drawable-mdpi/ic_home_delete_hover_holo_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_home_info_holo_dark.png b/res/drawable-mdpi/ic_home_info_holo_dark.png deleted file mode 100644 index c34f443bce..0000000000 Binary files a/res/drawable-mdpi/ic_home_info_holo_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_launcher_info_active_holo.png b/res/drawable-mdpi/ic_launcher_info_active_holo.png new file mode 100644 index 0000000000..d05de7427c Binary files /dev/null and b/res/drawable-mdpi/ic_launcher_info_active_holo.png differ diff --git a/res/drawable-mdpi/ic_launcher_info_normal_holo.png b/res/drawable-mdpi/ic_launcher_info_normal_holo.png new file mode 100644 index 0000000000..6a07cc9751 Binary files /dev/null and b/res/drawable-mdpi/ic_launcher_info_normal_holo.png differ diff --git a/res/drawable-mdpi/ic_launcher_market_holo.png b/res/drawable-mdpi/ic_launcher_market_holo.png new file mode 100644 index 0000000000..cacb374841 Binary files /dev/null and b/res/drawable-mdpi/ic_launcher_market_holo.png differ diff --git a/res/drawable-mdpi/ic_launcher_trashcan_active_holo.png b/res/drawable-mdpi/ic_launcher_trashcan_active_holo.png new file mode 100644 index 0000000000..244fe27dc9 Binary files /dev/null and b/res/drawable-mdpi/ic_launcher_trashcan_active_holo.png differ diff --git a/res/drawable-mdpi/ic_launcher_trashcan_normal_holo.png b/res/drawable-mdpi/ic_launcher_trashcan_normal_holo.png new file mode 100644 index 0000000000..bd5db08164 Binary files /dev/null and b/res/drawable-mdpi/ic_launcher_trashcan_normal_holo.png differ diff --git a/res/drawable-mdpi/page_hover_left.9.png b/res/drawable-mdpi/page_hover_left.9.png deleted file mode 100644 index 5d5e0c8118..0000000000 Binary files a/res/drawable-mdpi/page_hover_left.9.png and /dev/null differ diff --git a/res/drawable-mdpi/page_hover_left_holo.9.png b/res/drawable-mdpi/page_hover_left_holo.9.png new file mode 100644 index 0000000000..b9368fb998 Binary files /dev/null and b/res/drawable-mdpi/page_hover_left_holo.9.png differ diff --git a/res/drawable-mdpi/page_hover_right.9.png b/res/drawable-mdpi/page_hover_right.9.png deleted file mode 100644 index 1545bfefad..0000000000 Binary files a/res/drawable-mdpi/page_hover_right.9.png and /dev/null differ diff --git a/res/drawable-mdpi/page_hover_right_holo.9.png b/res/drawable-mdpi/page_hover_right_holo.9.png new file mode 100644 index 0000000000..53ba807be3 Binary files /dev/null and b/res/drawable-mdpi/page_hover_right_holo.9.png differ diff --git a/res/drawable/delete_zone_selector.xml b/res/drawable/delete_target_selector.xml similarity index 83% rename from res/drawable/delete_zone_selector.xml rename to res/drawable/delete_target_selector.xml index e2b37f4dcc..229942e3ad 100644 --- a/res/drawable/delete_zone_selector.xml +++ b/res/drawable/delete_target_selector.xml @@ -19,6 +19,6 @@ --> - - + + diff --git a/res/drawable/info_target_selector.xml b/res/drawable/info_target_selector.xml new file mode 100644 index 0000000000..f3a7016c38 --- /dev/null +++ b/res/drawable/info_target_selector.xml @@ -0,0 +1,24 @@ + + + + + + + diff --git a/res/layout-large/button_bar.xml b/res/layout-large/button_bar.xml index a060761623..8d7f5df2ed 100644 --- a/res/layout-large/button_bar.xml +++ b/res/layout-large/button_bar.xml @@ -136,7 +136,7 @@ android:id="@+id/delete_zone" android:text="@string/delete_zone_label_workspace" android:drawablePadding="@dimen/delete_zone_drawable_padding" - android:drawableLeft="@drawable/delete_zone_selector" + android:drawableLeft="@drawable/delete_target_selector" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignRight="@+id/configure_button" diff --git a/res/layout-large/qsb_bar.xml b/res/layout-large/qsb_bar.xml index 421ace2e18..b600eda2e8 100644 --- a/res/layout-large/qsb_bar.xml +++ b/res/layout-large/qsb_bar.xml @@ -113,7 +113,7 @@ style="@style/DropTargetButton" android:id="@+id/delete_target_text" android:text="@string/delete_zone_label_workspace" - android:drawableLeft="@drawable/delete_zone_selector" /> + android:drawableLeft="@drawable/delete_target_selector" /> + android:drawableLeft="@drawable/info_target_selector" /> diff --git a/res/layout/qsb_bar.xml b/res/layout/qsb_bar.xml index cb97b011f4..21043b410f 100644 --- a/res/layout/qsb_bar.xml +++ b/res/layout/qsb_bar.xml @@ -74,7 +74,7 @@ style="@style/DropTargetButton" android:id="@+id/delete_target_text" android:text="@string/delete_zone_label_workspace" - android:drawableLeft="@drawable/delete_zone_selector" /> + android:drawableLeft="@drawable/delete_target_selector" /> + android:drawableLeft="@drawable/info_target_selector" /> diff --git a/res/values/colors.xml b/res/values/colors.xml index fd7b21c357..ae73b04bdd 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -20,8 +20,8 @@ - #D4FF3600 - #D40078FF + #DAFF0000 + #DA0099CC #FF191919 #EB191919 diff --git a/src/com/android/launcher2/AppsCustomizePagedView.java b/src/com/android/launcher2/AppsCustomizePagedView.java index 35ca3e9a1c..2a4af44962 100644 --- a/src/com/android/launcher2/AppsCustomizePagedView.java +++ b/src/com/android/launcher2/AppsCustomizePagedView.java @@ -204,7 +204,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen // Save the default widget preview background Resources resources = context.getResources(); - mDefaultWidgetBackground = resources.getDrawable(R.drawable.default_widget_preview); + mDefaultWidgetBackground = resources.getDrawable(R.drawable.default_widget_preview_holo); mAppIconSize = getResources().getDimensionPixelSize(R.dimen.app_icon_size); TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.PagedView, 0, 0); diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java index 99d62aed9e..a9cdb87900 100644 --- a/src/com/android/launcher2/CellLayout.java +++ b/src/com/android/launcher2/CellLayout.java @@ -163,9 +163,9 @@ public class CellLayout extends ViewGroup { final Resources res = getResources(); - mNormalBackground = res.getDrawable(R.drawable.homescreen_large_blue); - mActiveBackground = res.getDrawable(R.drawable.homescreen_large_green); - mActiveGlowBackground = res.getDrawable(R.drawable.homescreen_large_green_strong); + mNormalBackground = res.getDrawable(R.drawable.homescreen_blue_normal_holo); + mActiveBackground = res.getDrawable(R.drawable.homescreen_green_normal_holo); + mActiveGlowBackground = res.getDrawable(R.drawable.homescreen_green_strong_holo); mNormalBackgroundMini = res.getDrawable(R.drawable.homescreen_small_blue); mNormalGlowBackgroundMini = res.getDrawable(R.drawable.homescreen_small_blue_strong); diff --git a/src/com/android/launcher2/DeleteDropTarget.java b/src/com/android/launcher2/DeleteDropTarget.java index a30c03e66e..6e01bc0c46 100644 --- a/src/com/android/launcher2/DeleteDropTarget.java +++ b/src/com/android/launcher2/DeleteDropTarget.java @@ -16,16 +16,14 @@ package com.android.launcher2; -import android.animation.ObjectAnimator; import android.content.Context; import android.content.res.Configuration; import android.content.res.Resources; -import android.graphics.Color; import android.graphics.PorterDuff; import android.graphics.PorterDuffColorFilter; +import android.graphics.drawable.TransitionDrawable; import android.util.AttributeSet; import android.view.View; -import android.view.ViewGroup; import android.widget.TextView; import com.android.launcher.R; @@ -33,6 +31,7 @@ import com.android.launcher.R; public class DeleteDropTarget extends ButtonDropTarget { private TextView mText; + private TransitionDrawable mDrawable; private int mHoverColor = 0xFFFF0000; public DeleteDropTarget(Context context, AttributeSet attrs) { @@ -55,8 +54,8 @@ public class DeleteDropTarget extends ButtonDropTarget { mHoverColor = r.getColor(R.color.delete_target_hover_tint); mHoverPaint.setColorFilter(new PorterDuffColorFilter( mHoverColor, PorterDuff.Mode.SRC_ATOP)); - setBackgroundColor(mHoverColor); - getBackground().setAlpha(0); + mDrawable = (TransitionDrawable) mText.getCompoundDrawables()[0]; + mDrawable.setCrossFadeEnabled(true); // Remove the text in the Phone UI in landscape int orientation = getResources().getConfiguration().orientation; @@ -127,18 +126,13 @@ public class DeleteDropTarget extends ButtonDropTarget { public void onDragEnter(DragObject d) { super.onDragEnter(d); - ObjectAnimator anim = ObjectAnimator.ofInt(getBackground(), "alpha", - Color.alpha(mHoverColor)); - anim.setDuration(mTransitionDuration); - anim.start(); + mDrawable.startTransition(mTransitionDuration); } public void onDragExit(DragObject d) { super.onDragExit(d); - ObjectAnimator anim = ObjectAnimator.ofInt(getBackground(), "alpha", 0); - anim.setDuration(mTransitionDuration); - anim.start(); + mDrawable.resetTransition(); } public void onDrop(DragObject d) { diff --git a/src/com/android/launcher2/InfoDropTarget.java b/src/com/android/launcher2/InfoDropTarget.java index 76a6bf9269..c7812e3de3 100644 --- a/src/com/android/launcher2/InfoDropTarget.java +++ b/src/com/android/launcher2/InfoDropTarget.java @@ -16,14 +16,13 @@ package com.android.launcher2; -import android.animation.ObjectAnimator; import android.content.ComponentName; import android.content.Context; import android.content.res.Configuration; import android.content.res.Resources; -import android.graphics.Color; import android.graphics.PorterDuff; import android.graphics.PorterDuffColorFilter; +import android.graphics.drawable.TransitionDrawable; import android.util.AttributeSet; import android.view.View; import android.widget.TextView; @@ -33,6 +32,7 @@ import com.android.launcher.R; public class InfoDropTarget extends ButtonDropTarget { private TextView mText; + private TransitionDrawable mDrawable; private int mHoverColor = 0xFF0000FF; public InfoDropTarget(Context context, AttributeSet attrs) { @@ -54,8 +54,8 @@ public class InfoDropTarget extends ButtonDropTarget { mHoverColor = r.getColor(R.color.info_target_hover_tint); mHoverPaint.setColorFilter(new PorterDuffColorFilter( mHoverColor, PorterDuff.Mode.SRC_ATOP)); - setBackgroundColor(mHoverColor); - getBackground().setAlpha(0); + mDrawable = (TransitionDrawable) mText.getCompoundDrawables()[0]; + mDrawable.setCrossFadeEnabled(true); // Remove the text in the Phone UI in landscape int orientation = getResources().getConfiguration().orientation; @@ -109,17 +109,12 @@ public class InfoDropTarget extends ButtonDropTarget { public void onDragEnter(DragObject d) { super.onDragEnter(d); - ObjectAnimator anim = ObjectAnimator.ofInt(getBackground(), "alpha", - Color.alpha(mHoverColor)); - anim.setDuration(mTransitionDuration); - anim.start(); + mDrawable.startTransition(mTransitionDuration); } public void onDragExit(DragObject d) { super.onDragExit(d); - ObjectAnimator anim = ObjectAnimator.ofInt(getBackground(), "alpha", 0); - anim.setDuration(mTransitionDuration); - anim.start(); + mDrawable.resetTransition(); } } diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 0fb24f6e62..0a57185bb9 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -2809,7 +2809,7 @@ public final class Launcher extends Activity if (activityName != null) { mAppMarketIntent = intent; sAppMarketIcon = updateTextButtonWithIconFromExternalActivity( - R.id.market_button, activityName, R.drawable.app_market_generic); + R.id.market_button, activityName, R.drawable.ic_launcher_market_holo); marketButton.setVisibility(View.VISIBLE); // Remove the shop icon text in the Phone UI diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index 2b799ee63f..e1e26a149b 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -1240,11 +1240,11 @@ public class Workspace extends SmoothPagedView final CellLayout rightPage = (CellLayout) getChildAt(mCurrentPage + 1); if (leftPage != null && leftPage.getIsDragOverlapping()) { - final Drawable d = getResources().getDrawable(R.drawable.page_hover_left); + final Drawable d = getResources().getDrawable(R.drawable.page_hover_left_holo); d.setBounds(mScrollX, padding, mScrollX + d.getIntrinsicWidth(), height - padding); d.draw(canvas); } else if (rightPage != null && rightPage.getIsDragOverlapping()) { - final Drawable d = getResources().getDrawable(R.drawable.page_hover_right); + final Drawable d = getResources().getDrawable(R.drawable.page_hover_right_holo); d.setBounds(mScrollX + width - d.getIntrinsicWidth(), padding, mScrollX + width, height - padding); d.draw(canvas); }