From 35f0cc15be02efe78c411da6ff653d3475f30421 Mon Sep 17 00:00:00 2001 From: yueg Date: Thu, 18 Jan 2018 15:56:25 -0800 Subject: Descrease bubble bottom text scaling factor. Also set TextView width according to the scaling factor so texts don't go off screen when scaling. Test: manual PiperOrigin-RevId: 182452685 Change-Id: If438f1b7e0432c2856bd2cb937adfc4131e57410 --- .../newbubble/BottomActionViewController.java | 2 +- .../newbubble/res/layout/bottom_action_base.xml | 25 ++++++++++++++++++++-- java/com/android/newbubble/res/values/strings.xml | 6 +++--- 3 files changed, 27 insertions(+), 6 deletions(-) (limited to 'java/com/android') diff --git a/java/com/android/newbubble/BottomActionViewController.java b/java/com/android/newbubble/BottomActionViewController.java index a34d3a2b1..485d04169 100644 --- a/java/com/android/newbubble/BottomActionViewController.java +++ b/java/com/android/newbubble/BottomActionViewController.java @@ -34,7 +34,7 @@ final class BottomActionViewController { private static final int SHOW_TARGET_DELAY = 100; private static final int SHOW_HIDE_TARGET_DURATION = 175; private static final int HIGHLIGHT_TARGET_DURATION = 150; - private static final float HIGHLIGHT_TARGET_SCALE = 1.5f; + private static final float HIGHLIGHT_TARGET_SCALE = 1.3f; private static final float UNHIGHLIGHT_TARGET_ALPHA = 0.38f; private final Context context; diff --git a/java/com/android/newbubble/res/layout/bottom_action_base.xml b/java/com/android/newbubble/res/layout/bottom_action_base.xml index af7f7987f..8f7ba753e 100644 --- a/java/com/android/newbubble/res/layout/bottom_action_base.xml +++ b/java/com/android/newbubble/res/layout/bottom_action_base.xml @@ -17,20 +17,29 @@ + + + + + + + \ No newline at end of file diff --git a/java/com/android/newbubble/res/values/strings.xml b/java/com/android/newbubble/res/values/strings.xml index ce7d45606..08c685ee2 100644 --- a/java/com/android/newbubble/res/values/strings.xml +++ b/java/com/android/newbubble/res/values/strings.xml @@ -25,8 +25,8 @@ double tap to collapse call action menu". --> Collapse call action menu - + Hide - + End call - \ No newline at end of file + -- cgit v1.2.3