[Overview Actions] Update Overview UI to match new spec.

See spec in the design: https://docs.google.com/presentation/d/1gXWNdCRXvXuEhgDmE0TX2KYqCxIQBXVtWKdl4pKrno8/edit#slide=id.g6f30ae9caf_14_4

Test: local
Bug: 139828243
Change-Id: I6e01dd5de4e4d9ccb4ec7febe81b3e789119bfa0
This commit is contained in:
Becky Qiu
2020-04-08 14:56:30 -07:00
parent 16cd3677bc
commit e32f484693
3 changed files with 3 additions and 7 deletions
@@ -268,8 +268,7 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable {
}
// Sets animations for modal UI. We will remove the margins to zoom in the snapshot.
float topMargin =
getResources().getDimension(R.dimen.task_thumbnail_top_margin_with_actions);
float topMargin = getResources().getDimension(R.dimen.task_thumbnail_top_margin);
float bottomMargin =
getResources().getDimension(R.dimen.task_thumbnail_bottom_margin_with_actions);
float newHeight = mSnapshotView.getHeight() + topMargin + bottomMargin;
+1 -2
View File
@@ -17,8 +17,7 @@
<resources>
<dimen name="task_thumbnail_top_margin">24dp</dimen>
<dimen name="task_thumbnail_top_margin_with_actions">60dp</dimen>
<dimen name="task_thumbnail_bottom_margin_with_actions">76dp</dimen>
<dimen name="task_thumbnail_bottom_margin_with_actions">44dp</dimen>
<dimen name="task_thumbnail_half_top_margin">12dp</dimen>
<dimen name="task_thumbnail_icon_size">48dp</dimen>
<!-- For screens without rounded corners -->
@@ -122,9 +122,7 @@ public class LayoutUtils {
paddingHorz = res.getDimension(paddingResId);
}
float topIconMargin = overviewActionsEnabled
? res.getDimension(R.dimen.task_thumbnail_top_margin_with_actions)
: res.getDimension(R.dimen.task_thumbnail_top_margin);
float topIconMargin = res.getDimension(R.dimen.task_thumbnail_top_margin);
float bottomMargin = thumbnailBottomMargin(context);
float paddingVert = overviewActionsEnabled && removeShelfFromOverview(context)