Add scrim for PreviewFragment
Added 2 gradients in PreviewFragment
1. Gradient at top which helps highlight buttons in toolbar which are
white in color
2. Gradient at bottom of PreviewFragment which helps highlight buttons
at the bottom of the PreviewFragment.
These are useful when a picture or video overlaps with the buttons or
toolbar.
Bug: 185801129
Test: Manual. Videos in the bug.
Change-Id: I348a24c587c5b5d79bad66babf7bf3f2b416570a
Merged-In: I348a24c587c5b5d79bad66babf7bf3f2b416570a
(cherry picked from commit d680b9a8d7cbf1d25c5e7000c813e163d6dc4742)
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 8e6e12f..85a0300 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -65,6 +65,8 @@
<!-- PhotoPicker Preview text -->
<dimen name="preview_add_text_size">14sp</dimen>
<dimen name="preview_deselect_text_size">16sp</dimen>
+ <dimen name="preview_toolbar_scrim_height">96dp</dimen>
+ <dimen name="preview_deselect_scrim_height">240dp</dimen>
<!-- PhotoPicker Work Profile -->
<dimen name="picker_profile_button_margin_bottom">32dp</dimen>
</resources>