More spacing changes to Customization Drawer.
Change-Id: Ie51a0a5da6169b0651e9f70cfb28450254cf0df1
This commit is contained in:
1 parent
f3ca3ab695
commit
ef0066b52d
6 files changed
+27
-15
No files matched your search
@@ -718,8 +718,8 @@ public class Workspace extends SmoothPagedView
|
||||
|
||||
boolean isPortrait = getMeasuredHeight() > getMeasuredWidth();
|
||||
float newY = (isPortrait ?
|
||||
getResources().getDimension(R.dimen.smallScreenVerticalMarginPortrait) :
|
||||
getResources().getDimension(R.dimen.smallScreenVerticalMarginLandscape));
|
||||
getResources().getDimension(R.dimen.allAppsSmallScreenVerticalMarginPortrait) :
|
||||
getResources().getDimension(R.dimen.allAppsSmallScreenVerticalMarginLandscape));
|
||||
float finalAlpha = 1.0f;
|
||||
float extraShrinkFactor = 1.0f;
|
||||
if (shrinkPosition == ShrinkPosition.SHRINK_TO_BOTTOM_VISIBLE) {
|
||||
@@ -735,7 +735,9 @@ public class Workspace extends SmoothPagedView
|
||||
newY = screenHeight / 2 - scaledPageHeight / 2;
|
||||
finalAlpha = 1.0f;
|
||||
} else if (shrinkPosition == ShrinkPosition.SHRINK_TO_TOP) {
|
||||
newY = screenHeight / 10;
|
||||
newY = (isPortrait ?
|
||||
getResources().getDimension(R.dimen.customizeSmallScreenVerticalMarginPortrait) :
|
||||
getResources().getDimension(R.dimen.customizeSmallScreenVerticalMarginLandscape));
|
||||
}
|
||||
|
||||
// We animate all the screens to the centered position in workspace
|
||||
|
||||
Reference in new issue
Block a user