diff options
author | Nancy Chen <nancychen@google.com> | 2014-07-23 14:18:49 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2014-07-23 15:06:35 -0700 |
commit | 946ec05d2a7535f30367558e18e73e1cf74deb6b (patch) | |
tree | 07093c221da3385ad34ab6a5e494a6d75ad2d047 | |
parent | 69c247f619fd2f2474070bdbcec32b78f6444149 (diff) |
Add disambiguation phone icon to recent phone call
Adding phone icon to recent phone card to differentiate behavior from a
regular call log item.
Bug: 15188371
Change-Id: I7de2c019e318f8d74a7783c7a566239f9d4e1725
-rw-r--r-- | res/layout/call_log_list_item.xml | 10 | ||||
-rw-r--r-- | res/values/colors.xml | 5 | ||||
-rw-r--r-- | src/com/android/dialer/list/ShortcutCardsAdapter.java | 2 |
3 files changed, 17 insertions, 0 deletions
diff --git a/res/layout/call_log_list_item.xml b/res/layout/call_log_list_item.xml index 1e61f7768..ad382e51d 100644 --- a/res/layout/call_log_list_item.xml +++ b/res/layout/call_log_list_item.xml @@ -132,6 +132,16 @@ /> </LinearLayout> </LinearLayout> + <ImageView + android:id="@+id/call_indicator_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:src="@drawable/ic_results_phone" + android:tint="@color/recent_call_log_item_phone_icon_tint" + android:alpha="0.3" + android:visibility="gone" + /> </LinearLayout> <!-- Viewstub with additional expandable actions for a call log entry --> diff --git a/res/values/colors.xml b/res/values/colors.xml index d7a929fda..44346bc8e 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -33,6 +33,9 @@ <!-- Color of the text describing an unconsumed voicemail. --> <color name="call_log_voicemail_highlight_color">#33b5e5</color> + <!-- Tint of the recent card phone icon --> + <color name="recent_call_log_item_phone_icon_tint">#000000</color> + <!-- Colour of voicemail progress bar to the right of position indicator. Same as the background color of the dialer @@ -93,4 +96,6 @@ <color name="actionbar_icon_color">#ffffff</color> <color name="dialer_dialpad_touch_tint">#331dc7db</color> + + </resources> diff --git a/src/com/android/dialer/list/ShortcutCardsAdapter.java b/src/com/android/dialer/list/ShortcutCardsAdapter.java index e856d800b..b20df063e 100644 --- a/src/com/android/dialer/list/ShortcutCardsAdapter.java +++ b/src/com/android/dialer/list/ShortcutCardsAdapter.java @@ -263,6 +263,8 @@ public class ShortcutCardsAdapter extends BaseAdapter { callLogItem.findViewById(R.id.call_log_row) .setBackgroundColor(mShortCardBackgroundColor); + + callLogItem.findViewById(R.id.call_indicator_icon).setVisibility(View.VISIBLE); } @Override |