Align bubble bar stash anim with taskbar (1/n)
Only scale bubble bar background during stash and unstash animation. Follows the logic used for taskbar. We scale only the background and clip the icons separately. Bug: 345488489 Test: PersistentBubbleStashControllerTest Test: TransientBubbleStashControllerTest Test: BubbleBarViewAnimatorTest Test: stash and unstash bubble bar in app by swiping up from taskbar Test: expand and collapse bubble bar in app by swiping up on bar Test: expand and collapse bubble bar on home screen by tapping on it Flag: com.android.wm.shell.enable_bubble_bar Change-Id: Ifc7922c444f2179fc49643424815e5e7dde519cc
This commit is contained in:
1 parent
359fb55a26
commit
9eadd68e01
6 files changed
+97
-25
No files matched your search
@@ -305,6 +305,20 @@ public class BubbleBarView extends FrameLayout {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set scale for bubble bar background in x direction
|
||||
*/
|
||||
public void setBackgroundScaleX(float scaleX) {
|
||||
mBubbleBarBackground.setScaleX(scaleX);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set scale for bubble bar background in y direction
|
||||
*/
|
||||
public void setBackgroundScaleY(float scaleY) {
|
||||
mBubbleBarBackground.setScaleY(scaleY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets new icon sizes and newBubbleBarPadding between icons and bubble bar borders.
|
||||
*
|
||||
@@ -322,7 +336,7 @@ public class BubbleBarView extends FrameLayout {
|
||||
int childCount = getChildCount();
|
||||
for (int i = 0; i < childCount; i++) {
|
||||
View childView = getChildAt(i);
|
||||
childView.setScaleY(mIconScale);
|
||||
childView.setScaleX(mIconScale);
|
||||
childView.setScaleY(mIconScale);
|
||||
FrameLayout.LayoutParams params = (LayoutParams) childView.getLayoutParams();
|
||||
params.height = (int) mIconSize;
|
||||
|
||||
Reference in new issue
Block a user