Collapse private space container and animate header.

- Just opposite of how it will expand.
- RecyclerView.SmoothScroller is needed to scroll the container.

- Need to separate the lock button because this way I can use animateLayout changes and it itself was its own drawable. Separated into icon and textView in a viewGroup.
- Give the background the 10padding on the left and right so that when in animation, the icon can adjust the padding/margins there.
- Using propertySetter to set animation
- Animates the alpha of the settings alpha

- updated test to account for the nested child views the test needs to inspect

bug: 299294792
test: manual:
Expand + Collapse Video: https://drive.google.com/file/d/1Og66eqmXv3THn0wO4_x6Tfp2AbwFWUwZ/view?usp=sharing
Flag: ACONFIG com.android.launcher3.Flags.private_space_animation TEAMFOOD

Change-Id: I96f1d172a481522d23b4cee996ddec65961fce78
This commit is contained in:
Brandon Dayauon
2024-01-23 14:13:05 -08:00
parent 772e0127c3
commit 08b06523a5
13 changed files with 346 additions and 77 deletions

View File

@@ -294,6 +294,12 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
mIconLoadRequest.cancel();
mIconLoadRequest = null;
}
// Reset any shifty arrangements in case animation is disrupted.
setPivotY(0);
setAlpha(1);
setScaleY(1);
setTranslationY(0);
setVisibility(VISIBLE);
}
private void cancelDotScaleAnim() {