summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2015-04-21 10:17:41 -0700
committerTyler Gunn <tgunn@google.com>2015-04-21 10:17:41 -0700
commit9afa723dcebf18759c63dc1c976b05050e348d2a (patch)
treea17b5994ca3054fe673328024b3c7bf8f8096313 /res
parent41ddbe19ea116ce45c1cd91d8c0584a16f13ba84 (diff)
CallLogAdapter cleanup and refactoring.
- Some minor cleanup and refactoring. Bug: 20393675 Change-Id: I438a9ca222cac87c9323417a216453706393c190
Diffstat (limited to 'res')
-rw-r--r--res/layout/call_log_list_item.xml8
-rw-r--r--res/values/styles.xml9
2 files changed, 10 insertions, 7 deletions
diff --git a/res/layout/call_log_list_item.xml b/res/layout/call_log_list_item.xml
index 7a826d9f5..a0ed5c799 100644
--- a/res/layout/call_log_list_item.xml
+++ b/res/layout/call_log_list_item.xml
@@ -38,14 +38,8 @@
<!-- Linear layout to separate the primary area containing the contact badge and caller
information and the secondary action (call details / play voicemail). -->
<android.support.v7.widget.CardView
- xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/call_log_row"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="4dp"
- android:baselineAligned="false"
- card_view:cardCornerRadius="4dp"
- card_view:cardBackgroundColor="@color/background_dialer_call_log_list_item">
+ style="@style/CallLogCardStyle">
<!-- Primary area containing the contact badge and caller information -->
<LinearLayout
diff --git a/res/values/styles.xml b/res/values/styles.xml
index cfb2480c8..dacf6a47c 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -192,4 +192,13 @@
<style name="AlertDialogTheme" parent="@android:style/Theme.Material.Light.Dialog">
<item name="android:colorAccent">@color/dialtacts_theme_color</item>
</style>
+
+ <style name="CallLogCardStyle" parent="CardView">
+ <item name="android:layout_width">match_parent</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:layout_margin">4dp</item>
+ <item name="android:baselineAligned">false</item>
+ <item name="cardCornerRadius">4dp</item>
+ <item name="cardBackgroundColor">@color/background_dialer_call_log_list_item</item>
+ </style>
</resources>