Contact detail list changes
- Bring back DataKind header labels
- Fix dividers
- Add networks section for 3rd party entries
- Move phonetic name (previously in header) into list of contact details
- Move attribution (previously in header) under networks section
- Rearrange ordering of DataKind sections according to mocks
- Do some minor re-styling for phone
Change-Id: Ic49e521e122b00a6038b0679f21b90e2323b9171
diff --git a/res/values/colors.xml b/res/values/colors.xml
index 9d726e2..496d55f 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -43,6 +43,9 @@
<!-- Color of the line above the contact photo in the contact detail header -->
<color name="contact_detail_header_divider_color">#FF999999</color>
+ <!-- Color of the title text and divider for the kind type on the contact detail page -->
+ <color name="detail_kind_title_color">#63B8FF</color>
+
<!-- Color of the text indicating the type of entry (e.g. Home, Work etc) -->
<color name="detail_item_type_color">#B4B4B4</color>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index d248f5b..7ab889c 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -116,7 +116,10 @@
<dimen name="detail_item_icon_margin">10dip</dimen>
<!-- Left and right padding for a contact detail item -->
- <dimen name="detail_item_side_margin">10dip</dimen>
+ <dimen name="detail_item_side_margin">16dip</dimen>
+
+ <!-- Top and bottom padding for a contact detail item -->
+ <dimen name="detail_item_vertical_margin">12dip</dimen>
<!-- Minimum height of a row in the contact detail -->
<dimen name="detail_min_line_item_height">48dip</dimen>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 4103060..0e47ebb 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -1262,6 +1262,9 @@
<!-- Field title for the phonetic name of a contact [CHAR LIMIT=64]-->
<string name="name_phonetic">Phonetic name</string>
+ <!-- Title for the list of all contact details that come from third-party sources (including a corporate directory) [CHAR LIMIT=20] -->
+ <string name="network">Network</string>
+
<!-- String describing which account type a contact came from when editing it -->
<string name="account_type_format"><xliff:g id="source" example="Gmail">%1$s</xliff:g> contact</string>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index fbd8653..2abfaa2 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -276,12 +276,11 @@
<style name="ContactDetailItemType">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
- <item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
- <item name="android:textColor">@color/detail_item_type_color</item>
+ <item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
+ <item name="android:textColor">?android:attr/textColorTertiary</item>
<item name="android:singleLine">true</item>
<item name="android:ellipsize">marquee</item>
<item name="android:gravity">center_vertical</item>
- <item name="android:paddingTop">5dip</item>
</style>
<style name="GroupBrowseListItem">