summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authoryueg <yueg@google.com>2017-11-22 11:07:44 -0800
committerCopybara-Service <copybara-piper@google.com>2017-11-22 16:27:12 -0800
commit3dcd8ea9c7aa95b76711095f612dbc52958bf6a6 (patch)
treeac2101425709bffad30fc187fd2633459368430d /java
parent7ba72d2d5b4061cf55d5440d4434a660c9108d2e (diff)
Bubble v2 UI changes.
Including: - Use exit-to-app icon instead of fullscreen icon for back-to-call button - Use ripple for first button since it needs top-rounded background - Change red hang-up button color and grey icon and text color - Change some dimensions Bug: 67605985 Test: manual PiperOrigin-RevId: 176678427 Change-Id: I3f7836d832f7130f82d7f3764fb392807f3fab9a
Diffstat (limited to 'java')
-rw-r--r--java/com/android/dialer/theme/res/values/colors.xml2
-rw-r--r--java/com/android/incallui/NewReturnToCallController.java2
-rw-r--r--java/com/android/newbubble/res/drawable/bubble_pill_up.xml23
-rw-r--r--java/com/android/newbubble/res/drawable/bubble_ripple_pill_up.xml (renamed from java/com/android/newbubble/res/drawable/bubble_ripple_circle_small.xml)9
-rw-r--r--java/com/android/newbubble/res/layout/new_bubble_base.xml14
-rw-r--r--java/com/android/newbubble/res/values/colors.xml3
-rw-r--r--java/com/android/newbubble/res/values/styles.xml2
-rw-r--r--java/com/android/newbubble/res/values/values.xml4
8 files changed, 38 insertions, 21 deletions
diff --git a/java/com/android/dialer/theme/res/values/colors.xml b/java/com/android/dialer/theme/res/values/colors.xml
index a59fa6704..a43487416 100644
--- a/java/com/android/dialer/theme/res/values/colors.xml
+++ b/java/com/android/dialer/theme/res/values/colors.xml
@@ -72,5 +72,5 @@
<color name="icon_color_grey">#89000000</color>
<!-- Color for bubble -->
- <color name="dialer_end_call_button_color">#FFDF0000</color>
+ <color name="dialer_end_call_button_color">#BD2A2A</color>
</resources>
diff --git a/java/com/android/incallui/NewReturnToCallController.java b/java/com/android/incallui/NewReturnToCallController.java
index 8f2463e8b..399b18568 100644
--- a/java/com/android/incallui/NewReturnToCallController.java
+++ b/java/com/android/incallui/NewReturnToCallController.java
@@ -280,7 +280,7 @@ public class NewReturnToCallController implements InCallUiListener, Listener, Au
// Return to call
actions.add(
Action.builder()
- .setIconDrawable(context.getDrawable(R.drawable.quantum_ic_fullscreen_vd_theme_24))
+ .setIconDrawable(context.getDrawable(R.drawable.quantum_ic_exit_to_app_vd_theme_24))
.setIntent(fullScreen)
.setName(context.getText(R.string.bubble_return_to_call))
.build());
diff --git a/java/com/android/newbubble/res/drawable/bubble_pill_up.xml b/java/com/android/newbubble/res/drawable/bubble_pill_up.xml
new file mode 100644
index 000000000..9dc0395f4
--- /dev/null
+++ b/java/com/android/newbubble/res/drawable/bubble_pill_up.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2017 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License
+ -->
+
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+ <corners
+ android:topRightRadius="8dp"
+ android:topLeftRadius="8dp"/>
+ <solid android:color="@android:color/white"/>
+</shape>
diff --git a/java/com/android/newbubble/res/drawable/bubble_ripple_circle_small.xml b/java/com/android/newbubble/res/drawable/bubble_ripple_pill_up.xml
index 109d1cec1..77147f828 100644
--- a/java/com/android/newbubble/res/drawable/bubble_ripple_circle_small.xml
+++ b/java/com/android/newbubble/res/drawable/bubble_ripple_pill_up.xml
@@ -16,11 +16,6 @@
-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
- android:color="?android:colorControlHighlight">
- <item>
- <shape>
- <corners android:radius="@dimen/bubble_small_icon_size"/>
- <solid android:color="@android:color/white"/>
- </shape>
- </item>
+ android:color="@color/bubble_ripple_color">
+ <item android:drawable="@drawable/bubble_pill_up"/>
</ripple>
diff --git a/java/com/android/newbubble/res/layout/new_bubble_base.xml b/java/com/android/newbubble/res/layout/new_bubble_base.xml
index c90cabdf2..8cac982f4 100644
--- a/java/com/android/newbubble/res/layout/new_bubble_base.xml
+++ b/java/com/android/newbubble/res/layout/new_bubble_base.xml
@@ -88,10 +88,10 @@
tools:visibility="visible">
<RelativeLayout
android:id="@+id/bubble_triangle"
- android:layout_width="20dp"
- android:layout_height="20dp"
+ android:layout_width="12dp"
+ android:layout_height="12dp"
android:layout_marginTop="7dp"
- android:layout_marginBottom="-10dp"
+ android:layout_marginBottom="-6dp"
android:layout_centerHorizontal="true"
android:background="@color/background_dialer_white"
android:elevation="@dimen/bubble_expanded_elevation"
@@ -107,15 +107,14 @@
android:layoutDirection="inherit">
<com.android.newbubble.NewCheckableButton
android:id="@+id/bubble_button_full_screen"
- android:layout_marginTop="@dimen/bubble_radius"
+ android:layout_marginTop="8dp"
android:textColor="@color/bubble_button_color_grey"
- android:background="@color/background_dialer_white"
+ android:background="@drawable/bubble_ripple_pill_up"
android:drawableTint="@color/bubble_button_color_grey"
- style="@style/CheckableButtonWithSelectableItemBackground"/>
+ style="@style/CheckableButton"/>
<com.android.newbubble.NewCheckableButton
android:id="@+id/bubble_button_mute"
android:layout_below="@id/bubble_button_full_screen"
- android:layout_marginTop="@dimen/bubble_expanded_separator_height"
android:textColor="@color/bubble_button_color_grey"
android:background="@color/background_dialer_white"
android:drawableTint="@color/bubble_button_color_grey"
@@ -123,7 +122,6 @@
<com.android.newbubble.NewCheckableButton
android:id="@+id/bubble_button_audio_route"
android:layout_below="@id/bubble_button_mute"
- android:layout_marginTop="@dimen/bubble_expanded_separator_height"
android:textColor="@color/bubble_button_color_grey"
android:background="@color/background_dialer_white"
android:drawableTint="@color/bubble_button_color_grey"
diff --git a/java/com/android/newbubble/res/values/colors.xml b/java/com/android/newbubble/res/values/colors.xml
index 8b1294fc6..74ad85cea 100644
--- a/java/com/android/newbubble/res/values/colors.xml
+++ b/java/com/android/newbubble/res/values/colors.xml
@@ -18,7 +18,8 @@
<resources>
<color name="bubble_primary_background_darken">#33000000</color>
- <color name="bubble_button_color_grey">@color/dialer_secondary_text_color</color>
+ <color name="bubble_ripple_color">@color/bubble_primary_background_darken</color>
+ <color name="bubble_button_color_grey">@color/icon_color_grey</color>
<color name="bubble_button_color_white">@color/dialer_primary_text_color_white</color>
<color name="bubble_button_color_blue">@color/dialer_theme_color</color>
</resources>
diff --git a/java/com/android/newbubble/res/values/styles.xml b/java/com/android/newbubble/res/values/styles.xml
index 274bd8704..6c138d645 100644
--- a/java/com/android/newbubble/res/values/styles.xml
+++ b/java/com/android/newbubble/res/values/styles.xml
@@ -28,7 +28,7 @@
</style>
<style name="SelectableItemTheme">
- <item name="colorControlHighlight">@color/dialer_secondary_text_color_hiden</item>
+ <item name="colorControlHighlight">@color/bubble_ripple_color</item>
</style>
<style name="CheckableButtonWithSelectableItemBackground" parent="CheckableButton">
<item name="android:theme">@style/SelectableItemTheme</item>
diff --git a/java/com/android/newbubble/res/values/values.xml b/java/com/android/newbubble/res/values/values.xml
index a028254c7..6dda61d6c 100644
--- a/java/com/android/newbubble/res/values/values.xml
+++ b/java/com/android/newbubble/res/values/values.xml
@@ -34,8 +34,8 @@
<dimen name="bubble_elevation">6dp</dimen>
<dimen name="bubble_expanded_elevation">8dp</dimen>
<dimen name="bubble_expanded_width">160dp</dimen>
- <dimen name="bubble_radius">12dp</dimen>
- <dimen name="bubble_expanded_separator_height">4dp</dimen>
+ <dimen name="bubble_radius">16dp</dimen>
+ <dimen name="bubble_expanded_separator_height">8dp</dimen>
<dimen name="bubble_small_icon_size">24dp</dimen>
<dimen name="bubble_small_icon_padding">4dp</dimen>
</resources>