Change Overview Actions to round buttons.
If floating search is active in Overview (flag enabled and we are the active Launcher), these buttons will be aligned to the search bar relative to the bottom of the screen. Otherwise, the buttons will be aligned below the active task like before. Demo for Launcher3 build: https://drive.google.com/file/d/1fVzRRnW5AFDMPkW-E8_w4BOCzTAOURQ_/view?usp=drive_link&resourcekey=0-6-EbFZXkBqcu0rw7uuEzjw Bug: 292000892 Test: Manual with floating enabled/disabled and SEPARATE_RECENTS_ACTIVITY enabled/disabled (simulating not being the active Launcher). Also tested with a 3P Launcher, Nova. Flag: N/A; this change is enabled by default, but also verified UI looks correct with ENABLE_FLOATING_SEARCH_BAR. Change-Id: Ia45f88d2c691c4525b1e73cca4707498d058a917
This commit is contained in:
1 parent
c56c01c329
commit
f98949cac3
16 files changed
+131
-77
No files matched your search
@@ -581,13 +581,11 @@ public class DeviceProfile {
|
||||
overviewTaskIconDrawableSizeGridPx =
|
||||
res.getDimensionPixelSize(R.dimen.task_thumbnail_icon_drawable_size_grid);
|
||||
overviewTaskThumbnailTopMarginPx = overviewTaskIconSizePx + overviewTaskMarginPx;
|
||||
// Don't add margin with floating search bar to minimize risk of overlapping.
|
||||
overviewActionsTopMarginPx = FeatureFlags.ENABLE_FLOATING_SEARCH_BAR.get() ? 0
|
||||
: res.getDimensionPixelSize(R.dimen.overview_actions_top_margin);
|
||||
overviewActionsTopMarginPx = res.getDimensionPixelSize(R.dimen.overview_actions_top_margin);
|
||||
overviewPageSpacing = res.getDimensionPixelSize(R.dimen.overview_page_spacing);
|
||||
overviewActionsButtonSpacing = res.getDimensionPixelSize(
|
||||
R.dimen.overview_actions_button_spacing);
|
||||
overviewActionsHeight = res.getDimensionPixelSize(R.dimen.overview_actions_height);
|
||||
overviewActionsHeight = res.getDimensionPixelSize(R.dimen.overview_actions_size);
|
||||
overviewRowSpacing = res.getDimensionPixelSize(R.dimen.overview_grid_row_spacing);
|
||||
overviewGridSideMargin = res.getDimensionPixelSize(R.dimen.overview_grid_side_margin);
|
||||
|
||||
|
||||
Reference in new issue
Block a user