summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-08-21 13:20:54 -0700
committerAndrew Lee <anwlee@google.com>2014-08-22 15:41:35 -0700
commiteb141e078353a2e3a997001afd1aa16a88da429b (patch)
tree9e8a0aa407c0c04feb7d8d78f8c4648209d908bd /res
parent6fad34b5fd3edfe8a14c038a72195b69afd503ba (diff)
downloadandroid_packages_apps_Dialer-eb141e078353a2e3a997001afd1aa16a88da429b.tar.gz
android_packages_apps_Dialer-eb141e078353a2e3a997001afd1aa16a88da429b.tar.bz2
android_packages_apps_Dialer-eb141e078353a2e3a997001afd1aa16a88da429b.zip
Add "add to contacts" actionable item to shortcut card.
+ This appears for contacts with no lookup key. This means that it will show up for businesses too; even though we match a name, there's no lookup key. + Remove missed call information which used to be shown below the shortcut card, but no longer is. + Make alignment of this call log list item more pretty. + Add tinted person_add drawable for this actionable item. Bug: 17186220 Change-Id: Iabcfa73c2ffeeb0bb24127ef74e85e612be51b9e
Diffstat (limited to 'res')
-rw-r--r--res/layout/call_log_list_item_extra.xml75
-rw-r--r--res/values/dimens.xml3
2 files changed, 43 insertions, 35 deletions
diff --git a/res/layout/call_log_list_item_extra.xml b/res/layout/call_log_list_item_extra.xml
index 3623e3f94..c4126e42f 100644
--- a/res/layout/call_log_list_item_extra.xml
+++ b/res/layout/call_log_list_item_extra.xml
@@ -18,45 +18,50 @@
<!-- Can't use merge here because this is referenced via a ViewStub -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:id="@+id/badge_container">
+ android:id="@+id/badge_container"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
<View android:layout_width="match_parent"
- android:layout_height="1px"
- android:background="@color/favorite_contacts_separator_color"/>
+ android:layout_height="1px"
+ android:background="@color/favorite_contacts_separator_color" />
<LinearLayout android:id="@+id/badge_link_container"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingStart="@dimen/call_log_outer_margin"
- android:paddingEnd="@dimen/call_log_outer_margin"
- android:paddingTop="0dip"
- android:paddingBottom="0dip"
- android:background="?android:attr/selectableItemBackground"
- android:clickable="true">
- <ImageView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/badge_image"
- android:tint="@color/dialpad_primary_text_color"
- android:padding="@dimen/call_log_outer_margin"/>
- <TextView android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingStart="@dimen/call_log_start_margin"
- android:id="@+id/badge_text"
- android:textColor="@color/dialpad_primary_text_color"
- android:layout_gravity="center_vertical"
- android:layout_weight="1"/>
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingStart="@dimen/call_log_outer_margin"
+ android:paddingEnd="@dimen/call_log_outer_margin"
+ android:paddingTop="@dimen/call_log_item_extra_padding_vertical"
+ android:paddingBottom="@dimen/call_log_item_extra_padding_vertical"
+ android:background="?android:attr/selectableItemBackground"
+ android:clickable="true">
+
+ <ImageView android:id="@+id/badge_image"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:tint="@color/dialpad_primary_text_color"
+ android:padding="@dimen/call_log_outer_margin" />
+
+ <TextView android:id="@+id/badge_text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingStart="@dimen/call_log_start_margin"
+ android:textColor="@color/dialpad_primary_text_color"
+ android:layout_gravity="center_vertical"
+ android:layout_weight="1" />
+
<ImageView android:id="@+id/dismiss_button"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_marginEnd="@dimen/call_log_icon_margin"
- android:src="@drawable/ic_close_dk"
- android:tint="@color/recent_call_log_item_phone_icon_tint"
- android:alpha="0.3"
- android:background="?android:attr/selectableItemBackground"
- android:visibility="gone"
- android:contentDescription="@string/description_dismiss"/>
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:layout_marginEnd="@dimen/call_log_icon_margin"
+ android:src="@drawable/ic_close_dk"
+ android:tint="@color/recent_call_log_item_phone_icon_tint"
+ android:alpha="0.3"
+ android:background="?android:attr/selectableItemBackground"
+ android:visibility="gone"
+ android:contentDescription="@string/description_dismiss" />
+
</LinearLayout>
+
</FrameLayout> \ No newline at end of file
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 0856032b2..e48720edd 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -76,6 +76,9 @@
<dimen name="recent_call_log_item_padding_top">12dp</dimen>
<dimen name="recent_call_log_item_padding_bottom">11dp</dimen>
+ <dimen name="call_log_item_extra_padding_vertical">4dp</dimen>
+
+
<!-- Size of the star icon on the favorites tile. -->
<dimen name="favorites_star_icon_size">12dp</dimen>