diff options
author | yueg <yueg@google.com> | 2018-01-23 10:00:15 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-01-23 11:25:37 -0800 |
commit | bf7e8854806ce55c7fd298940fca52d013a02e89 (patch) | |
tree | 4c8800807d19285806ab0bad55c8b788f1691e25 /java/com/android/newbubble/res/drawable/bubble_shape_circle.xml | |
parent | f2556612e0b4cba2d536191ea8caf155cc434492 (diff) |
Bubble change when display size change.
- Set primary button background oval and transparent.
- Provide outline for primary button since elevation doesn't work when background is transparent.
- Re-draw bubble on configuration changed to propagate changes.
Test: manual
PiperOrigin-RevId: 182949653
Change-Id: I71e70d6fa43fa5867f9cf37002930c5a8dc42b06
Diffstat (limited to 'java/com/android/newbubble/res/drawable/bubble_shape_circle.xml')
-rw-r--r-- | java/com/android/newbubble/res/drawable/bubble_shape_circle.xml | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/java/com/android/newbubble/res/drawable/bubble_shape_circle.xml b/java/com/android/newbubble/res/drawable/bubble_shape_circle.xml index af9d8589b..b188e9d3f 100644 --- a/java/com/android/newbubble/res/drawable/bubble_shape_circle.xml +++ b/java/com/android/newbubble/res/drawable/bubble_shape_circle.xml @@ -15,11 +15,10 @@ ~ limitations under the License --> -<shape xmlns:android="http://schemas.android.com/apk/res/android"> - <corners - android:bottomRightRadius="@dimen/bubble_size" - android:topRightRadius="@dimen/bubble_size" - android:bottomLeftRadius="@dimen/bubble_size" - android:topLeftRadius="@dimen/bubble_size"/> - <solid android:color="@android:color/white"/> +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="oval"> + <size + android:width="@dimen/bubble_size" + android:height="@dimen/bubble_size"/> + <solid android:color="@android:color/transparent"/> </shape> |