mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Animating the widget previews on drag from AppsCustomize.
Change-Id: I223d66bb447c40e6870be46bb27f107f0e428a95
This commit is contained in:
@@ -62,7 +62,7 @@ public class DragView extends View {
|
||||
* @param registrationY The y coordinate of the registration point.
|
||||
*/
|
||||
public DragView(Launcher launcher, Bitmap bitmap, int registrationX, int registrationY,
|
||||
int left, int top, int width, int height) {
|
||||
int left, int top, int width, int height, final float initialScale) {
|
||||
super(launcher);
|
||||
mDragLayer = launcher.getDragLayer();
|
||||
|
||||
@@ -86,8 +86,8 @@ public class DragView extends View {
|
||||
|
||||
mOffsetX += deltaX;
|
||||
mOffsetY += deltaY;
|
||||
setScaleX(1f + (value * (scale - 1f)));
|
||||
setScaleY(1f + (value * (scale - 1f)));
|
||||
setScaleX(initialScale + (value * (scale - initialScale)));
|
||||
setScaleY(initialScale + (value * (scale - initialScale)));
|
||||
if (sDragAlpha != 1f) {
|
||||
setAlpha(sDragAlpha * value + (1f - value));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user