Update drag and drop visualizations
=> Remove the bitmap-based icon outline
=> Add simple cell based location preview of drop location
=> Round corners of page outlines
=> Get rid of page background for focused page
=> Update colors to use system accent color
Bug: 185163323
Test: manual
Change-Id: Id604c59201536967e25236f305eeeb0aafc9c022
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
index 381b0fe..39e985e 100644
--- a/res/values/attrs.xml
+++ b/res/values/attrs.xml
@@ -43,6 +43,7 @@
<attr name="folderTextColor" format="color" />
<attr name="folderHintColor" format="color" />
<attr name="workProfileOverlayTextColor" format="color" />
+ <attr name="gridColor" format="color" />
<!-- BubbleTextView specific attributes. -->
<declare-styleable name="BubbleTextView">
diff --git a/res/values/config.xml b/res/values/config.xml
index 57f626c..db98811 100644
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -38,7 +38,7 @@
<integer name="config_dragOutlineFadeTime">900</integer>
<!-- The alpha value at which to show the most recent drop visualization outline. -->
- <integer name="config_dragOutlineMaxAlpha">128</integer>
+ <integer name="config_dragOutlineMaxAlpha">255</integer>
<!-- Parameters controlling the animation for when an item is dropped on the home screen,
and it animates from its old position to the new one. -->
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 51dddab..08da632 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -166,7 +166,7 @@
<dimen name="drag_flingToDeleteMinVelocity">-1500dp</dimen>
- <dimen name="spring_loaded_panel_border">1dp</dimen>
+ <dimen name="spring_loaded_panel_border">2dp</dimen>
<dimen name="keyboard_drag_stroke_width">4dp</dimen>
<!-- Folders -->
@@ -298,4 +298,8 @@
<dimen name="task_thumbnail_icon_size_grid">0dp</dimen>
<dimen name="overview_task_margin">0dp</dimen>
+<!-- Workspace grid visualization parameters -->
+ <dimen name="grid_visualization_rounding_radius">28dp</dimen>
+ <dimen name="grid_visualization_cell_spacing">6dp</dimen>
+
</resources>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index fd77b80..37b7e2d 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -56,6 +56,7 @@
<item name="workProfileOverlayTextColor">#FF212121</item>
<item name="eduHalfSheetBGColor">?android:attr/colorAccent</item>
<item name="disabledIconAlpha">.54</item>
+ <item name="gridColor">?android:attr/colorAccent</item>
<item name="android:windowTranslucentStatus">false</item>
<item name="android:windowTranslucentNavigation">false</item>