From 69705be50fc4c84b35df88c879dd9a4b4de655b3 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 4 May 2015 17:24:01 -0700 Subject: Add "show call history" list item. + Add new VIEW_TYPE to the CallLogAdapter. + Reintroduce boolean on CallLogAdapter to specify if a call history list item should be shown. + Add new ViewHolder and layout for footer. + Some minor styling tweaks and cleanups. Bug: 20108202 Change-Id: Ie4a86bff9e53cfd69ef8b061af048f40f4358579 --- res/layout/call_log_list_item.xml | 4 ++-- res/layout/show_call_history_list_item.xml | 30 ++++++++++++++++++++++++++++++ res/values/dimens.xml | 10 ++++++---- res/values/strings.xml | 4 ++-- res/values/styles.xml | 2 +- 5 files changed, 41 insertions(+), 9 deletions(-) create mode 100644 res/layout/show_call_history_list_item.xml (limited to 'res') diff --git a/res/layout/call_log_list_item.xml b/res/layout/call_log_list_item.xml index a0ed5c799..5928183f8 100644 --- a/res/layout/call_log_list_item.xml +++ b/res/layout/call_log_list_item.xml @@ -49,8 +49,8 @@ android:layout_height="wrap_content" android:paddingStart="@dimen/call_log_start_margin" android:paddingEnd="@dimen/call_log_outer_margin" - android:paddingTop="@dimen/call_log_outer_margin" - android:paddingBottom="@dimen/call_log_outer_margin" + android:paddingTop="@dimen/call_log_vertical_padding" + android:paddingBottom="@dimen/call_log_vertical_padding" android:orientation="horizontal" android:gravity="center_vertical" android:focusable="true" diff --git a/res/layout/show_call_history_list_item.xml b/res/layout/show_call_history_list_item.xml new file mode 100644 index 000000000..1264894a9 --- /dev/null +++ b/res/layout/show_call_history_list_item.xml @@ -0,0 +1,30 @@ + + + + + + + + + diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 502b21a59..b9b3aa587 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -22,15 +22,17 @@ 16dp - 32dip + 32dp 54dp - 4dip - 13dip + 4dp + 13dp 8dp 16dp - 24dip + 24dp 2dp + 12dp 56dip + 72dp 40dp diff --git a/res/values/strings.xml b/res/values/strings.xml index 4ee5b45c8..7568604af 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -512,8 +512,8 @@ Make video call - - View full call history + + View full call history %s new missed calls diff --git a/res/values/styles.xml b/res/values/styles.xml index dacf6a47c..2cd4aa3e6 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -198,7 +198,7 @@ wrap_content 4dp false - 4dp + 2dp @color/background_dialer_call_log_list_item -- cgit v1.2.3