summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/app/res/layout
diff options
context:
space:
mode:
authorcalderwoodra <calderwoodra@google.com>2018-05-19 00:05:02 -0700
committerCopybara-Service <copybara-piper@google.com>2018-05-21 13:17:30 -0700
commit929539eb864822d669265b142bdcc49b6cf8ea6b (patch)
treefcaef3fac4068e3669ca5916f7a743d0d5e41bbb /java/com/android/dialer/app/res/layout
parentea7399a7c0c8a3832a6592aee0a0372c300b11f5 (diff)
Implement a global theme to be easily configured in Dialer.
deleted several colors and unified them across the app migrated several alert dialogs to support alert dialogs added many todos migrated several tests from GoogleRobolectricTestRunner to RobolectricTestRunner Because of the test migration: - moved dialpad theme attributes into dialpad/theme - moved incall ui theme attributes into incallui/theme Bug: 79883035 Test: tap PiperOrigin-RevId: 197246477 Change-Id: Ifc534793bc32757bbbf2007a7c40287c8d0817ad
Diffstat (limited to 'java/com/android/dialer/app/res/layout')
-rw-r--r--java/com/android/dialer/app/res/layout/call_log_activity.xml2
-rw-r--r--java/com/android/dialer/app/res/layout/call_log_fragment.xml2
-rw-r--r--java/com/android/dialer/app/res/layout/call_log_list_item.xml2
-rw-r--r--java/com/android/dialer/app/res/layout/dialtacts_activity.xml2
-rw-r--r--java/com/android/dialer/app/res/layout/keyguard_preview.xml2
-rw-r--r--java/com/android/dialer/app/res/layout/lists_fragment.xml4
-rw-r--r--java/com/android/dialer/app/res/layout/search_edittext.xml2
-rw-r--r--java/com/android/dialer/app/res/layout/voicemail_playback_layout.xml2
8 files changed, 9 insertions, 9 deletions
diff --git a/java/com/android/dialer/app/res/layout/call_log_activity.xml b/java/com/android/dialer/app/res/layout/call_log_activity.xml
index a5e532698..d9d40a1a0 100644
--- a/java/com/android/dialer/app/res/layout/call_log_activity.xml
+++ b/java/com/android/dialer/app/res/layout/call_log_activity.xml
@@ -18,7 +18,7 @@
android:id="@+id/calllog_frame"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/background_dialer_light"
+ android:background="?android:attr/colorBackgroundFloating"
android:orientation="vertical">
<com.android.contacts.common.list.ViewPagerTabs
android:id="@+id/viewpager_header"
diff --git a/java/com/android/dialer/app/res/layout/call_log_fragment.xml b/java/com/android/dialer/app/res/layout/call_log_fragment.xml
index f0563967c..2fb63606a 100644
--- a/java/com/android/dialer/app/res/layout/call_log_fragment.xml
+++ b/java/com/android/dialer/app/res/layout/call_log_fragment.xml
@@ -26,7 +26,7 @@
android:layout_width="match_parent"
android:layout_height="@dimen/tab_height"
android:layout_gravity="start"
- android:background="@color/actionbar_background_color"
+ android:background="?android:attr/colorPrimary"
android:orientation="horizontal"
android:visibility="gone">
diff --git a/java/com/android/dialer/app/res/layout/call_log_list_item.xml b/java/com/android/dialer/app/res/layout/call_log_list_item.xml
index d1111103e..23aeda3da 100644
--- a/java/com/android/dialer/app/res/layout/call_log_list_item.xml
+++ b/java/com/android/dialer/app/res/layout/call_log_list_item.xml
@@ -143,7 +143,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/call_log_call_account_margin_bottom"
android:layout_marginEnd="@dimen/call_log_icon_margin"
- android:textColor="?android:textColorSecondary"
+ android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/call_log_detail_text_size"
android:visibility="gone"
android:maxLines="1"/>
diff --git a/java/com/android/dialer/app/res/layout/dialtacts_activity.xml b/java/com/android/dialer/app/res/layout/dialtacts_activity.xml
index 1627844d6..cf6591b63 100644
--- a/java/com/android/dialer/app/res/layout/dialtacts_activity.xml
+++ b/java/com/android/dialer/app/res/layout/dialtacts_activity.xml
@@ -19,7 +19,7 @@
android:id="@+id/dialtacts_mainlayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/background_dialer_light"
+ android:background="?android:attr/colorBackgroundFloating"
android:clipChildren="false"
android:clipToPadding="false"
android:focusable="true"
diff --git a/java/com/android/dialer/app/res/layout/keyguard_preview.xml b/java/com/android/dialer/app/res/layout/keyguard_preview.xml
index eab98d261..e5207ac8b 100644
--- a/java/com/android/dialer/app/res/layout/keyguard_preview.xml
+++ b/java/com/android/dialer/app/res/layout/keyguard_preview.xml
@@ -23,7 +23,7 @@
<View
android:layout_width="match_parent"
android:layout_height="25dp"
- android:background="@color/dialer_theme_color_dark"/>
+ android:background="?android:attr/colorPrimaryDark"/>
<View
android:layout_width="match_parent"
android:layout_height="0dp"
diff --git a/java/com/android/dialer/app/res/layout/lists_fragment.xml b/java/com/android/dialer/app/res/layout/lists_fragment.xml
index 95961729d..1126b0e51 100644
--- a/java/com/android/dialer/app/res/layout/lists_fragment.xml
+++ b/java/com/android/dialer/app/res/layout/lists_fragment.xml
@@ -32,7 +32,7 @@
<FrameLayout
android:layout_width="match_parent"
android:layout_height="@dimen/action_bar_height_large"
- android:background="@color/actionbar_background_color"
+ android:background="?android:attr/colorPrimary"
android:elevation="@dimen/tab_elevation"/>
<com.android.contacts.common.list.ViewPagerTabs
@@ -69,7 +69,7 @@
android:id="@+id/remove_view_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/actionbar_background_color"
+ android:background="?android:attr/colorPrimary"
android:gravity="center"
android:orientation="horizontal"
android:visibility="gone">
diff --git a/java/com/android/dialer/app/res/layout/search_edittext.xml b/java/com/android/dialer/app/res/layout/search_edittext.xml
index 5fc492d29..8a2cfd483 100644
--- a/java/com/android/dialer/app/res/layout/search_edittext.xml
+++ b/java/com/android/dialer/app/res/layout/search_edittext.xml
@@ -31,7 +31,7 @@
android:id="@+id/search_box_collapsed"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="?android:selectableItemBackground"
+ android:background="?android:attr/selectableItemBackground"
android:gravity="center_vertical">
<ImageView
diff --git a/java/com/android/dialer/app/res/layout/voicemail_playback_layout.xml b/java/com/android/dialer/app/res/layout/voicemail_playback_layout.xml
index 2589a67c6..a9b866e89 100644
--- a/java/com/android/dialer/app/res/layout/voicemail_playback_layout.xml
+++ b/java/com/android/dialer/app/res/layout/voicemail_playback_layout.xml
@@ -20,7 +20,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="64dp"
android:layout_marginEnd="24dp"
- android:background="@color/background_dialer_call_log_list_item"
+ android:background="?android:attr/colorBackgroundFloating"
android:orientation="vertical">
<TextView