From f3170880408642ca4389cd6c85b71eeecee4bced Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 10 Apr 2015 17:28:26 -0700 Subject: Cardify the call log list items! + Added card view dependencies to makefile. + Convert call log list items to use card views. + Cleaned up code style and unused views in fragment xml. - Removed deprecated expand code (more work to be done here). - Removed now-unused constants. Bug: 19372817 Change-Id: I237cf214f8f052de5fb1f41908d6012f52de994e --- res/layout/call_log_fragment.xml | 34 ++++----------------- res/layout/call_log_list_item.xml | 62 ++++++++++++++++++++++----------------- res/values/colors.xml | 3 +- res/values/dimens.xml | 2 -- 4 files changed, 41 insertions(+), 60 deletions(-) (limited to 'res') diff --git a/res/layout/call_log_fragment.xml b/res/layout/call_log_fragment.xml index c126b778b..ff0d58e00 100644 --- a/res/layout/call_log_fragment.xml +++ b/res/layout/call_log_fragment.xml @@ -28,36 +28,11 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:visibility="gone"> - - - - - + + + @@ -65,7 +40,8 @@ + android:background="@color/background_dialer_list_items" + android:padding="8dp" /> - + android:gravity="center_vertical" + card_view:cardCornerRadius="4dp" + card_view:cardBackgroundColor="@color/background_dialer_list_items"> + + android:focusable="true" /> + + android:layout_marginStart="@dimen/call_log_start_margin"> + + android:singleLine="true" /> + + android:visibility="gone" /> + + android:orientation="horizontal"> + + android:layout_gravity="center_vertical" /> + + android:singleLine="true" /> + + + android:singleLine="true" /> + + + android:visibility="gone" /> + + + + - - - + diff --git a/res/values/colors.xml b/res/values/colors.xml index f697cc8cc..2954d75ba 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -58,7 +58,7 @@ #f9f9f9 - @color/background_dialer_light + @color/background_dialer_white @color/background_dialer_results @@ -84,7 +84,6 @@ #16000000 - #ffffff @color/dialer_theme_color diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 9de20f310..0902cb70d 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -111,8 +111,6 @@ 12sp 44dp - - 2dp 15dp 9dp -- cgit v1.2.3