Fix QuickContact entry padding to align text with icons
- Add a 5dp padding to the top of header TextView, to align it with the icons
- Reduce the top padding of icons and texts in the entry by 5dp, to remedy
the 5dp added to the top of them by this CL and ag/865866.
Bug 27392076
Change-Id: I99ee26e857e526d37478be708534ee526875f1d1
diff --git a/res/layout/expanding_entry_card_item.xml b/res/layout/expanding_entry_card_item.xml
index 228244d..a4bdce1 100644
--- a/res/layout/expanding_entry_card_item.xml
+++ b/res/layout/expanding_entry_card_item.xml
@@ -41,6 +41,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
+ android:paddingTop="5dp"
android:layout_toEndOf="@+id/icon"
android:layout_toStartOf="@+id/icon_alternate"
android:textColor="@color/quickcontact_entry_header_text_color"
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 7b4cd12..e16d11e 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -213,7 +213,7 @@
<!-- Dimensions for an entry in ExpandingEntryCardView -->
<dimen name="expanding_entry_card_item_padding_start">20dp</dimen>
<dimen name="expanding_entry_card_item_padding_end">20dp</dimen>
- <dimen name="expanding_entry_card_item_padding_top">18dp</dimen>
+ <dimen name="expanding_entry_card_item_padding_top">13dp</dimen>
<dimen name="expanding_entry_card_item_padding_bottom">16dp</dimen>
<dimen name="expanding_entry_card_item_image_spacing">27dp</dimen>