Loading libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/multiinstance/ManageWindowsViewContainer.kt +8 −4 Original line number Diff line number Diff line Loading @@ -133,6 +133,7 @@ abstract class ManageWindowsViewContainer( null ) menuBackground.paint.color = menuBackgroundColor scrollableMenuView.alpha = 0f scrollableMenuView.background = menuBackground scrollableMenuView.elevation = getDimensionPixelSize(MENU_ELEVATION_DP) scrollableMenuView.setOnTouchListener { _, event -> Loading Loading @@ -203,6 +204,7 @@ abstract class ManageWindowsViewContainer( menuWidth += (instanceIconWidth + iconMargin).toInt() } rowLayout?.addView(appSnapshotButton) appSnapshotButton.alpha = 0f iconViews += appSnapshotButton appSnapshotButton.requestLayout() rowLayout?.post { Loading Loading @@ -254,7 +256,7 @@ abstract class ManageWindowsViewContainer( ) for (view in iconViews) { animateView(view, MENU_BOUNDS_SHRUNK_SCALE, MENU_BOUNDS_FULL_SCALE, MENU_START_ALPHA, MENU_FULL_ALPHA MENU_START_ALPHA, MENU_FULL_ALPHA, delay = MENU_ALPHA_ANIM_DELAY ) } createAnimatorSet().start() Loading @@ -267,7 +269,7 @@ abstract class ManageWindowsViewContainer( ) for (view in iconViews) { animateView(view, MENU_BOUNDS_FULL_SCALE, MENU_BOUNDS_SHRUNK_SCALE, MENU_FULL_ALPHA, MENU_START_ALPHA MENU_FULL_ALPHA, MENU_START_ALPHA, delay = MENU_ALPHA_ANIM_DELAY ) } createAnimatorSet().apply { Loading @@ -287,7 +289,9 @@ abstract class ManageWindowsViewContainer( startBoundsScale: Float, endBoundsScale: Float, startAlpha: Float, endAlpha: Float) { endAlpha: Float, delay: Long = 0 ) { animators += ObjectAnimator.ofFloat( view, SCALE_X, Loading @@ -311,7 +315,7 @@ abstract class ManageWindowsViewContainer( endAlpha ).apply { duration = MENU_ALPHA_ANIM_DURATION startDelay = MENU_ALPHA_ANIM_DELAY startDelay = delay } } Loading Loading
libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/multiinstance/ManageWindowsViewContainer.kt +8 −4 Original line number Diff line number Diff line Loading @@ -133,6 +133,7 @@ abstract class ManageWindowsViewContainer( null ) menuBackground.paint.color = menuBackgroundColor scrollableMenuView.alpha = 0f scrollableMenuView.background = menuBackground scrollableMenuView.elevation = getDimensionPixelSize(MENU_ELEVATION_DP) scrollableMenuView.setOnTouchListener { _, event -> Loading Loading @@ -203,6 +204,7 @@ abstract class ManageWindowsViewContainer( menuWidth += (instanceIconWidth + iconMargin).toInt() } rowLayout?.addView(appSnapshotButton) appSnapshotButton.alpha = 0f iconViews += appSnapshotButton appSnapshotButton.requestLayout() rowLayout?.post { Loading Loading @@ -254,7 +256,7 @@ abstract class ManageWindowsViewContainer( ) for (view in iconViews) { animateView(view, MENU_BOUNDS_SHRUNK_SCALE, MENU_BOUNDS_FULL_SCALE, MENU_START_ALPHA, MENU_FULL_ALPHA MENU_START_ALPHA, MENU_FULL_ALPHA, delay = MENU_ALPHA_ANIM_DELAY ) } createAnimatorSet().start() Loading @@ -267,7 +269,7 @@ abstract class ManageWindowsViewContainer( ) for (view in iconViews) { animateView(view, MENU_BOUNDS_FULL_SCALE, MENU_BOUNDS_SHRUNK_SCALE, MENU_FULL_ALPHA, MENU_START_ALPHA MENU_FULL_ALPHA, MENU_START_ALPHA, delay = MENU_ALPHA_ANIM_DELAY ) } createAnimatorSet().apply { Loading @@ -287,7 +289,9 @@ abstract class ManageWindowsViewContainer( startBoundsScale: Float, endBoundsScale: Float, startAlpha: Float, endAlpha: Float) { endAlpha: Float, delay: Long = 0 ) { animators += ObjectAnimator.ofFloat( view, SCALE_X, Loading @@ -311,7 +315,7 @@ abstract class ManageWindowsViewContainer( endAlpha ).apply { duration = MENU_ALPHA_ANIM_DURATION startDelay = MENU_ALPHA_ANIM_DELAY startDelay = delay } } Loading