Updating the virtual preloader UX.
> No click feedback when in preloader mode > No preloader UI when drawn in drag layer > The preloader consists of a background 9 patch image and a circular progress is drawn in the content region of the background. > The preloader is drawn in a slightly larget area than the actual bounds to make the circular progress more prominent compared to the icon. issue: 15835307 Change-Id: Ifec3d93ecf1fac994d1128b517da3797247e7ed6
This commit is contained in:
1 parent
6551b7ef07
commit
95abbb330c
12 files changed
+363
-119
No files matched your search
@@ -566,6 +566,10 @@ public class DragLayer extends FrameLayout implements ViewGroup.OnHierarchyChang
|
||||
// the drag view about the scaled child view.
|
||||
toY += Math.round(toScale * tv.getPaddingTop());
|
||||
toY -= dragView.getMeasuredHeight() * (1 - toScale) / 2;
|
||||
if (dragView.getDragVisualizeOffset() != null) {
|
||||
toY -= Math.round(toScale * dragView.getDragVisualizeOffset().y);
|
||||
}
|
||||
|
||||
toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2;
|
||||
} else if (child instanceof FolderIcon) {
|
||||
// Account for holographic blur padding on the drag view
|
||||
|
||||
Reference in new issue
Block a user