Implement All Apps Icon upto the visual Specs.

Test: Visual
Bug: 267382941

Change-Id: If675c2f4767014598b23d8a2c2e684f5a8fb4f19
This commit is contained in:
Jagrut Desai
2023-02-16 15:40:44 -08:00
parent 73a2334f7f
commit 560b0eac62
8 changed files with 134 additions and 3 deletions

View File

@@ -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();