When adding or moving a resizable widget, the widget may resize
-> If a widget is resizable, and there is not enough room to add it in its current (or default) size, but can be scaled down to fit a certain area, it will be resized to fit the available space -> The resizing is animated using a crossfade and scale between the original dragView and the widget rendered in the final size Change-Id: I75db9dcabecce11598b3ae55f20b96b2ec6b7e87
This commit is contained in:
1 parent
a95d329dea
commit
d41fbf5680
9 files changed
+425
-145
No files matched your search
@@ -629,6 +629,9 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
|
||||
spanXY[1], createWidgetInfo, true);
|
||||
createItemInfo.spanX = spanXY[0];
|
||||
createItemInfo.spanY = spanXY[1];
|
||||
int[] minSpanXY = mLauncher.getMinSpanForWidget(createWidgetInfo, null);
|
||||
createWidgetInfo.minSpanX = minSpanXY[0];
|
||||
createWidgetInfo.minSpanY = minSpanXY[1];
|
||||
|
||||
FastBitmapDrawable previewDrawable = (FastBitmapDrawable) image.getDrawable();
|
||||
float minScale = 1.25f;
|
||||
|
||||
Reference in new issue
Block a user