Implement some UI changes.
Including:
- merge end call button with other buttons
- add ripple effect for buttons
- adjust elevation according to material design guide
- add triangle in expanded view
Bug: 67605985
Test: manual
PiperOrigin-RevId: 174253861
Change-Id: I7b5315245a322235efb39a9cda26b8686cc7bbf9
diff --git a/java/com/android/newbubble/NewCheckableButton.java b/java/com/android/newbubble/NewCheckableButton.java
index 63525a4..8e43335 100644
--- a/java/com/android/newbubble/NewCheckableButton.java
+++ b/java/com/android/newbubble/NewCheckableButton.java
@@ -17,6 +17,7 @@
package com.android.newbubble;
import android.content.Context;
+import android.content.res.ColorStateList;
import android.support.v4.view.AccessibilityDelegateCompat;
import android.support.v4.view.ViewCompat;
import android.support.v4.view.accessibility.AccessibilityNodeInfoCompat;
@@ -68,10 +69,12 @@
public void setChecked(boolean checked) {
if (mChecked != checked) {
mChecked = checked;
- setTextColor(
+ int newColor =
checked
- ? getContext().getColor(R.color.bubble_button_text_color_blue)
- : getContext().getColor(R.color.bubble_button_text_color_black));
+ ? getContext().getColor(R.color.bubble_button_color_blue)
+ : getContext().getColor(R.color.bubble_button_color_grey);
+ setTextColor(newColor);
+ setCompoundDrawableTintList(ColorStateList.valueOf(newColor));
}
}