Update calculation method for Overview UI placement on tablets
This update slightly changes the calculation method for Overview UI placement, in order to line up better with spec. (The previous calculation caused a small 30dp divergence on tablets.) Bug: 236760307 Test: Manual by measuring pixels and comparing to spec Change-Id: I94e9e7b5a6a24c37693425ac8ec71cd066003658
This commit is contained in:
1 parent
caacd73cfa
commit
1cfe6d490a
21 files changed
+66
-113
No files matched your search
@@ -866,10 +866,9 @@ public class TaskView extends FrameLayout implements Reusable {
|
||||
|
||||
int thumbnailTopMargin = deviceProfile.overviewTaskThumbnailTopMarginPx;
|
||||
int taskIconHeight = deviceProfile.overviewTaskIconSizePx;
|
||||
int taskMargin = isGridTask ? deviceProfile.overviewTaskMarginGridPx
|
||||
: deviceProfile.overviewTaskMarginPx;
|
||||
int taskIconMargin = thumbnailTopMargin - taskIconHeight - taskMargin;
|
||||
orientationHandler.setTaskIconParams(iconParams, taskIconMargin, taskIconHeight,
|
||||
int taskMargin = deviceProfile.overviewTaskMarginPx;
|
||||
|
||||
orientationHandler.setTaskIconParams(iconParams, taskMargin, taskIconHeight,
|
||||
thumbnailTopMargin, isRtl);
|
||||
iconParams.width = iconParams.height = taskIconHeight;
|
||||
mIconView.setLayoutParams(iconParams);
|
||||
|
||||
Reference in new issue
Block a user