summaryrefslogtreecommitdiff
path: root/res/layout
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-05-07 17:01:41 -0700
committerAndrew Lee <anwlee@google.com>2015-05-07 17:04:43 -0700
commit5a9cd71b8ea670cd7c9aebd3dba27ea8cbe769df (patch)
tree5507a63b60fa3a2a8e9e896a173d7d08ac2963fe /res/layout
parent432cfa109479782f1c5765a1ad80d332b8781310 (diff)
Add call log list item actions for adding contacts.
+ Add two actions: create new contact and add to existing contact. + Pass in ContactInfo to the CallLogListItem's ViewHolder. Bug: 20433758 Change-Id: Ic1387b33ebe027fa6ddbdb971996fc7d4c4ac88b
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/call_log_list_item_actions.xml36
1 files changed, 33 insertions, 3 deletions
diff --git a/res/layout/call_log_list_item_actions.xml b/res/layout/call_log_list_item_actions.xml
index 43da5d21b..5740aaa38 100644
--- a/res/layout/call_log_list_item_actions.xml
+++ b/res/layout/call_log_list_item_actions.xml
@@ -51,9 +51,39 @@
<TextView
style="@style/CallLogActionTextStyle"
- android:text="@string/call_log_action_voicemail"
- android:nextFocusLeft="@+id/video_call_action"
- android:nextFocusRight="@+id/details_action" />
+ android:text="@string/call_log_action_voicemail" />
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:id="@+id/create_new_contact_action"
+ style="@style/CallLogActionStyle"
+ android:nextFocusLeft="@+id/voicemail_action"
+ android:nextFocusRight="@+id/add_to_existing_contact_action">
+
+ <ImageView
+ style="@style/CallLogActionIconStyle"
+ android:src="@drawable/ic_person_add_24dp" />
+
+ <TextView
+ style="@style/CallLogActionTextStyle"
+ android:text="@string/search_shortcut_create_new_contact" />
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:id="@+id/add_to_existing_contact_action"
+ style="@style/CallLogActionStyle"
+ android:nextFocusLeft="@+id/create_new_contact_action"
+ android:nextFocusRight="@+id/details_action">
+
+ <ImageView
+ style="@style/CallLogActionIconStyle"
+ android:src="@drawable/ic_person_24dp" />
+
+ <TextView
+ style="@style/CallLogActionTextStyle"
+ android:text="@string/search_shortcut_add_to_existing_contact" />
</LinearLayout>