Update text size of few UI components
Updated "Photos" and "Albums" chip text size to 16sp. Previously, this
text size was lower than date header's text size, which made it
highlight date header over chips.
Update style for "deselect" button and "add" button to match
borderlessButtonStyle and materialButtonStyle respectively.
Bug: 204743884
Test: Uploaded diff screenshots in the bug
Change-Id: I6ce7e1e4ccbd913e781dba3825259c11835f321c
diff --git a/res/layout/fragment_preview.xml b/res/layout/fragment_preview.xml
index ae26636..f2cab22 100644
--- a/res/layout/fragment_preview.xml
+++ b/res/layout/fragment_preview.xml
@@ -58,7 +58,7 @@
android:textAllCaps="false"
android:text="@string/deselect"
android:textColor="@color/picker_default_white"
- android:textSize="@dimen/preview_deselect_text_size" />
+ style="?attr/borderlessButtonStyle"/>
<Button
android:id="@+id/preview_add_or_select_button"
@@ -69,6 +69,6 @@
android:text="@string/add"
android:textAllCaps="false"
android:textColor="@color/preview_default_grey"
- android:textSize="@dimen/preview_add_text_size"/>
+ style="?attr/materialButtonStyle"/>
</FrameLayout>
</FrameLayout>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 64050a6..423f6ac 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -52,7 +52,7 @@
<dimen name="picker_photo_item_spacing">3dp</dimen>
- <dimen name="picker_chip_text_size">14sp</dimen>
+ <dimen name="picker_chip_text_size">16sp</dimen>
<dimen name="picker_chip_touch_size">48dp</dimen>
<dimen name="picker_chip_radius">16dp</dimen>
@@ -62,8 +62,6 @@
<dimen name="preview_deselect_padding_start">2dp</dimen>
<dimen name="preview_viewpager_margin">20dp</dimen>
<!-- 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>