From f43b32f1b227c043bc7d7af0d66dfc0c9aa5a2e8 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 14 Aug 2014 17:43:04 -0700 Subject: Tweak FAB tints and positioning. + Change FAB tint so that it's not 100% opacity. + Change dialpad touch tints to new theme color. - Don't translate FAB downwards when opening dialpad. Bug: 16399233 Change-Id: I7d5e0015e0d7d436ce3e2780f3048dfb792d13c0 --- res/drawable/floating_action_button.xml | 2 +- res/values/colors.xml | 4 ++-- src/com/android/dialer/DialtactsActivity.java | 11 +---------- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/res/drawable/floating_action_button.xml b/res/drawable/floating_action_button.xml index 347e9d490..cbbfb8542 100644 --- a/res/drawable/floating_action_button.xml +++ b/res/drawable/floating_action_button.xml @@ -16,6 +16,6 @@ --> + android:color="@color/floating_action_button_touch_tint"> diff --git a/res/values/colors.xml b/res/values/colors.xml index 448d1e6c1..a3fd3f923 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -19,7 +19,6 @@ #333 #737373 - #eeff41 #ff1744 #00c853 @@ -100,7 +99,8 @@ #ffffff - #331dc7db + #330288d1 + #80ffffff diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 12c52da9c..e5e708bc5 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -230,10 +230,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O private String mActionMenuDialpadButtonStr; private ImageButton mFloatingActionButton; private FloatingActionButtonController mFloatingActionButtonController; - /** - * Additional offset for FAB to be lowered when dialpad is open. - */ - private int mFloatingActionButtonDialpadMarginBottomOffset; private int mActionBarHeight; @@ -393,8 +389,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O mFloatingActionButton.setOnTouchListener(this); mFloatingActionButtonController = new FloatingActionButtonController(this, floatingActionButtonContainer); - mFloatingActionButtonDialpadMarginBottomOffset = resources.getDimensionPixelOffset( - R.dimen.floating_action_button_dialpad_margin_bottom_offset); ImageButton optionsMenuButton = (ImageButton) searchEditTextLayout.findViewById(R.id.dialtacts_options_menu_button); @@ -1207,9 +1201,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O align = FloatingActionButtonController.ALIGN_END; } } - mFloatingActionButtonController.align(align, - 0 /* offsetX */, - mIsDialpadShown ? mFloatingActionButtonDialpadMarginBottomOffset : 0 /* offsetY */, - animate); + mFloatingActionButtonController.align(align, 0 /* offsetX */, 0 /* offsetY */, animate); } } -- cgit v1.2.3