mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 09:26:51 +00:00
Exposing some private methods to easily customize widgets popup
Change-Id: Ie7bd879200b1f14d472ff03fd64429930651a39f
This commit is contained in:
@@ -157,7 +157,7 @@ public class NotificationFooterLayout extends FrameLayout {
|
||||
Rect fromBounds = sTempRect;
|
||||
firstNotification.getGlobalVisibleRect(fromBounds);
|
||||
float scale = (float) toBounds.height() / fromBounds.height();
|
||||
Animator moveAndScaleIcon = LauncherAnimUtils.ofPropertyValuesHolder(firstNotification,
|
||||
Animator moveAndScaleIcon = ObjectAnimator.ofPropertyValuesHolder(firstNotification,
|
||||
new PropertyListBuilder().scale(scale).translationY(toBounds.top - fromBounds.top
|
||||
+ (fromBounds.height() * scale - fromBounds.height()) / 2).build());
|
||||
moveAndScaleIcon.addListener(new AnimatorListenerAdapter() {
|
||||
|
||||
Reference in New Issue
Block a user