From 81a77ffc4d36c6054a75acfe7b048e7c0d7a8744 Mon Sep 17 00:00:00 2001 From: yueg Date: Tue, 5 Dec 2017 10:29:03 -0800 Subject: Bubble v2 animation changes. Including: - expanded view expands/collapses from top of itself - small icon on avatar shows on left side when bubble is on right side - when expand on bottom, bubble move up a bit so that expanded view doesn't go off screen. It also go back to previous position when collapse. - remove animation for collapse when move expanded bubble This change should not enable bubble v2 for anyone. Bug: 67605985 Test: manual PiperOrigin-RevId: 177974562 Change-Id: Id83f3f744b717d51fbe58e58769ac2cd2810d2b5 --- .../newbubble/res/layout/new_bubble_base.xml | 129 +++++++++++---------- 1 file changed, 70 insertions(+), 59 deletions(-) (limited to 'java/com/android/newbubble/res/layout') 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 8cac982f4..8d4771631 100644 --- a/java/com/android/newbubble/res/layout/new_bubble_base.xml +++ b/java/com/android/newbubble/res/layout/new_bubble_base.xml @@ -19,7 +19,8 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:clipChildren="false" + android:clipChildren="true" + android:clipToPadding="false" tools:theme="@style/Theme.AppCompat"> - - + + + android:clipChildren="true" + android:clipToPadding="false" + android:layout_below="@id/bubble_primary_container"> - - - - - + - + android:elevation="@dimen/bubble_expanded_elevation" + android:rotation="45"> + + + + + + + -- cgit v1.2.3