mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
Implement All Apps Icon upto the visual Specs.
Test: Visual Bug: 267382941 Change-Id: If675c2f4767014598b23d8a2c2e684f5a8fb4f19
This commit is contained in:
@@ -113,6 +113,8 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
|
||||
|
||||
private float mScaleForReorderBounce = 1f;
|
||||
|
||||
private float mTranslationXForTaskbarAllAppsIcon = 0f;
|
||||
|
||||
private static final Property<BubbleTextView, Float> DOT_SCALE_PROPERTY
|
||||
= new Property<BubbleTextView, Float>(Float.TYPE, "dotScale") {
|
||||
@Override
|
||||
@@ -958,6 +960,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
|
||||
private void updateTranslation() {
|
||||
super.setTranslationX(mTranslationForReorderBounce.x
|
||||
+ mTranslationForReorderPreview.x
|
||||
+ mTranslationXForTaskbarAllAppsIcon
|
||||
+ mTranslationForMoveFromCenterAnimation.x
|
||||
+ mTranslationXForTaskbarAlignmentAnimation
|
||||
+ mTranslationXForTaskbarRevealAnimation
|
||||
@@ -969,6 +972,14 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
|
||||
+ mTranslationYForTaskbarRevealAnimation);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets translationX for taskbar all apps icon
|
||||
*/
|
||||
public void setTranslationXForTaskbarAllAppsIcon(float translationX) {
|
||||
mTranslationXForTaskbarAllAppsIcon = translationX;
|
||||
updateTranslation();
|
||||
}
|
||||
|
||||
public void setReorderBounceOffset(float x, float y) {
|
||||
mTranslationForReorderBounce.set(x, y);
|
||||
updateTranslation();
|
||||
|
||||
Reference in New Issue
Block a user