From 3bcea98f1e6d63e22a7b5393b31c2195d3db82b4 Mon Sep 17 00:00:00 2001 From: sail Date: Sun, 3 Sep 2017 13:57:22 -0700 Subject: Switch Dialer to use new third_party bubble library This CL switches Dialer to use the new common bubble libary. It also moves the integration tests into the bubble libary. Bug: 64797730 Test: BubbleIntegrationTest PiperOrigin-RevId: 167439680 Change-Id: Ie2e9367cb6a6561efb8abd425b6a12f8c1e78138 --- .../bubble/res/color/bubble_checkable_mask.xml | 21 ++++ .../bubble/res/color/bubble_icon_tint_states.xml | 21 ++++ .../res/drawable/bubble_background_pill_ltr.xml | 23 ++++ .../res/drawable/bubble_background_pill_rtl.xml | 23 ++++ .../drawable/bubble_ripple_checkable_circle.xml | 30 +++++ .../bubble/res/drawable/bubble_ripple_circle.xml | 26 +++++ java/com/android/bubble/res/layout/bubble_base.xml | 127 +++++++++++++++++++++ java/com/android/bubble/res/values/colors.xml | 20 ++++ java/com/android/bubble/res/values/values.xml | 25 ++++ 9 files changed, 316 insertions(+) create mode 100644 java/com/android/bubble/res/color/bubble_checkable_mask.xml create mode 100644 java/com/android/bubble/res/color/bubble_icon_tint_states.xml create mode 100644 java/com/android/bubble/res/drawable/bubble_background_pill_ltr.xml create mode 100644 java/com/android/bubble/res/drawable/bubble_background_pill_rtl.xml create mode 100644 java/com/android/bubble/res/drawable/bubble_ripple_checkable_circle.xml create mode 100644 java/com/android/bubble/res/drawable/bubble_ripple_circle.xml create mode 100644 java/com/android/bubble/res/layout/bubble_base.xml create mode 100644 java/com/android/bubble/res/values/colors.xml create mode 100644 java/com/android/bubble/res/values/values.xml (limited to 'java/com/android/bubble/res') diff --git a/java/com/android/bubble/res/color/bubble_checkable_mask.xml b/java/com/android/bubble/res/color/bubble_checkable_mask.xml new file mode 100644 index 000000000..f9416ab57 --- /dev/null +++ b/java/com/android/bubble/res/color/bubble_checkable_mask.xml @@ -0,0 +1,21 @@ + + + + + + + diff --git a/java/com/android/bubble/res/color/bubble_icon_tint_states.xml b/java/com/android/bubble/res/color/bubble_icon_tint_states.xml new file mode 100644 index 000000000..33ca1fdc5 --- /dev/null +++ b/java/com/android/bubble/res/color/bubble_icon_tint_states.xml @@ -0,0 +1,21 @@ + + + + + + + diff --git a/java/com/android/bubble/res/drawable/bubble_background_pill_ltr.xml b/java/com/android/bubble/res/drawable/bubble_background_pill_ltr.xml new file mode 100644 index 000000000..77c813a75 --- /dev/null +++ b/java/com/android/bubble/res/drawable/bubble_background_pill_ltr.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/java/com/android/bubble/res/drawable/bubble_background_pill_rtl.xml b/java/com/android/bubble/res/drawable/bubble_background_pill_rtl.xml new file mode 100644 index 000000000..9e2542154 --- /dev/null +++ b/java/com/android/bubble/res/drawable/bubble_background_pill_rtl.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/java/com/android/bubble/res/drawable/bubble_ripple_checkable_circle.xml b/java/com/android/bubble/res/drawable/bubble_ripple_checkable_circle.xml new file mode 100644 index 000000000..85e0b24f3 --- /dev/null +++ b/java/com/android/bubble/res/drawable/bubble_ripple_checkable_circle.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + diff --git a/java/com/android/bubble/res/drawable/bubble_ripple_circle.xml b/java/com/android/bubble/res/drawable/bubble_ripple_circle.xml new file mode 100644 index 000000000..8d5cf0bb5 --- /dev/null +++ b/java/com/android/bubble/res/drawable/bubble_ripple_circle.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + diff --git a/java/com/android/bubble/res/layout/bubble_base.xml b/java/com/android/bubble/res/layout/bubble_base.xml new file mode 100644 index 000000000..3b5735cd0 --- /dev/null +++ b/java/com/android/bubble/res/layout/bubble_base.xml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/java/com/android/bubble/res/values/colors.xml b/java/com/android/bubble/res/values/colors.xml new file mode 100644 index 000000000..97545faf3 --- /dev/null +++ b/java/com/android/bubble/res/values/colors.xml @@ -0,0 +1,20 @@ + + + + + #33000000 + diff --git a/java/com/android/bubble/res/values/values.xml b/java/com/android/bubble/res/values/values.xml new file mode 100644 index 000000000..f5816172d --- /dev/null +++ b/java/com/android/bubble/res/values/values.xml @@ -0,0 +1,25 @@ + + + + + 16dp + 64dp + 56dp + 16dp + 4dp + 16dp + -- cgit v1.2.3