diff options
author | Hyunyoung Song <hyunyoungs@google.com> | 2016-07-18 16:35:10 -0700 |
---|---|---|
committer | Hyunyoung Song <hyunyoungs@google.com> | 2016-07-18 16:35:10 -0700 |
commit | e4be3b3fdb29c6adb51ee05730c1693ba8d04587 (patch) | |
tree | 3155f8158cbe64aceb0be761b7ee9a6c46f22c4e /src/com/android/launcher3/Hotseat.java | |
parent | 77ba6b9cad542a78910b6d7c638a1254b31d79ab (diff) | |
download | android_packages_apps_Trebuchet-e4be3b3fdb29c6adb51ee05730c1693ba8d04587.tar.gz android_packages_apps_Trebuchet-e4be3b3fdb29c6adb51ee05730c1693ba8d04587.tar.bz2 android_packages_apps_Trebuchet-e4be3b3fdb29c6adb51ee05730c1693ba8d04587.zip |
Support gray hotseat background in all apps transition
b/30201515
Change-Id: Ie4b8442ac804b4df94e9673608129e6ffc0c3360
Diffstat (limited to 'src/com/android/launcher3/Hotseat.java')
-rw-r--r-- | src/com/android/launcher3/Hotseat.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/com/android/launcher3/Hotseat.java b/src/com/android/launcher3/Hotseat.java index b75d2c0da..7e2b42e49 100644 --- a/src/com/android/launcher3/Hotseat.java +++ b/src/com/android/launcher3/Hotseat.java @@ -23,6 +23,7 @@ import android.graphics.Color; import android.graphics.Rect; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; +import android.support.v4.graphics.ColorUtils; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.MotionEvent; @@ -67,7 +68,9 @@ public class Hotseat extends FrameLayout super(context, attrs, defStyle); mLauncher = (Launcher) context; mHasVerticalHotseat = mLauncher.getDeviceProfile().isVerticalBarLayout(); - mBackground = new ColorDrawable(); + mBackgroundColor = ColorUtils.setAlphaComponent( + context.getColor(R.color.all_apps_container_color), 0); + mBackground = new ColorDrawable(mBackgroundColor); setBackground(mBackground); } @@ -227,7 +230,7 @@ public class Hotseat extends FrameLayout } } - public int getBackgroundDrawableAlpha() { - return Color.alpha(mBackgroundColor); + public int getBackgroundDrawableColor() { + return mBackgroundColor; } } |