From 45c0059f18883ebda7133d92f5828b5859d22934 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 14 Aug 2014 17:47:48 -0700 Subject: Position/size adjustments to the floating action button. + Use new theme color for dialpad tints. + Translate FAB higher and make it 128% scaled in InCallUI. + Add methods so that dialpad is shown/hidden, FAB transitions to/from its normal position and normal scale. + Translate button in/out when enabled/disabled. Bug: 16399233 Change-Id: Ia8f56f494a89927c25657a75cfcca147c34c6c98 --- InCallUI/res/drawable/end_call_background.xml | 4 +- InCallUI/res/layout-land/call_card_content.xml | 22 +++++---- InCallUI/res/layout/call_card_content.xml | 22 +++++---- InCallUI/res/values/colors.xml | 4 +- InCallUI/res/values/dimens.xml | 7 ++- .../src/com/android/incallui/CallCardFragment.java | 55 +++++++++++++++++----- .../src/com/android/incallui/InCallActivity.java | 3 ++ 7 files changed, 81 insertions(+), 36 deletions(-) (limited to 'InCallUI') diff --git a/InCallUI/res/drawable/end_call_background.xml b/InCallUI/res/drawable/end_call_background.xml index b3d877b31..8f3926f47 100644 --- a/InCallUI/res/drawable/end_call_background.xml +++ b/InCallUI/res/drawable/end_call_background.xml @@ -16,6 +16,4 @@ - - + android:color="@color/end_call_touch_feedback_tint" /> diff --git a/InCallUI/res/layout-land/call_card_content.xml b/InCallUI/res/layout-land/call_card_content.xml index 7d1db8e00..b1b527505 100644 --- a/InCallUI/res/layout-land/call_card_content.xml +++ b/InCallUI/res/layout-land/call_card_content.xml @@ -110,17 +110,21 @@ + android:layout_alignParentBottom="true" > + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@drawable/end_call_background" + android:src="@drawable/fab_ic_end_call" + android:scaleType="center" + android:contentDescription="@string/onscreenEndCallText" /> + + diff --git a/InCallUI/res/layout/call_card_content.xml b/InCallUI/res/layout/call_card_content.xml index ec32d986d..5437ef04d 100644 --- a/InCallUI/res/layout/call_card_content.xml +++ b/InCallUI/res/layout/call_card_content.xml @@ -121,17 +121,21 @@ + android:layout_alignParentBottom="true" > + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@drawable/end_call_background" + android:src="@drawable/fab_ic_end_call" + android:scaleType="center" + android:contentDescription="@string/onscreenEndCallText" /> + + diff --git a/InCallUI/res/values/colors.xml b/InCallUI/res/values/colors.xml index faf27e676..bd2642d64 100644 --- a/InCallUI/res/values/colors.xml +++ b/InCallUI/res/values/colors.xml @@ -67,6 +67,6 @@ #a3a3a3 #ffffff - - #66eeff41 + + #330288d1 diff --git a/InCallUI/res/values/dimens.xml b/InCallUI/res/values/dimens.xml index f35a3f3d8..87dd66756 100644 --- a/InCallUI/res/values/dimens.xml +++ b/InCallUI/res/values/dimens.xml @@ -59,6 +59,7 @@ 4dp 4dp + -24dp