From 466618d1beb678cb354fbedf07b675b56b0cbf45 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 8 May 2014 16:13:23 -0700 Subject: Touch up InCallUI call card positioning. - Position the sizes, layout, and transitions of text better. - Correct the sizing of the buttons. Bug: 14622411, 14617751, 14618551 Change-Id: Idbc5f9b97447d6b40e4702ea70db2196dfdab979 --- InCallUI/res/layout/call_button_fragment.xml | 91 +++++++++++----------- InCallUI/res/layout/primary_call_info.xml | 70 +++++++++-------- InCallUI/res/values/dimens.xml | 15 ++-- InCallUI/res/values/styles.xml | 10 ++- .../src/com/android/incallui/CallCardFragment.java | 8 +- 5 files changed, 101 insertions(+), 93 deletions(-) (limited to 'InCallUI') diff --git a/InCallUI/res/layout/call_button_fragment.xml b/InCallUI/res/layout/call_button_fragment.xml index 19ada9020..7fa3c56ab 100644 --- a/InCallUI/res/layout/call_button_fragment.xml +++ b/InCallUI/res/layout/call_button_fragment.xml @@ -30,15 +30,15 @@ + android:id="@+id/bottomButtons" + android:orientation="vertical" + android:layout_width="match_parent" + android:background="#0000ff" + android:layout_margin="0dp" + android:padding="0dp" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:visibility="invisible" > + layout="@layout/extra_button_row" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingStart="@dimen/button_cluster_horizontal_padding" + android:paddingEnd="@dimen/button_cluster_horizontal_padding" + android:background="@color/button_background_color" + android:gravity="center"> + style="@style/InCallCompoundButton" + android:background="@drawable/btn_compound_dialpad" + android:contentDescription="@string/onscreenShowDialpadText" /> + style="@style/InCallButton" + android:background="@drawable/btn_compound_audio" + android:contentDescription="@string/onscreenAudioText" /> + style="@style/InCallButton" + android:background="@drawable/btn_compound_mute" + android:contentDescription="@string/onscreenMuteText" /> + style="@style/InCallButton" + android:background="@drawable/btn_compound_hold" + android:contentDescription="@string/onscreenHoldText" /> + style="@style/InCallButton" + android:background="@drawable/btn_swap" + android:contentDescription="@string/onscreenSwapCallsText" + android:visibility="gone" /> + style="@style/InCallButton" + android:background="@drawable/btn_add" + android:contentDescription="@string/onscreenAddCallText" + android:visibility="gone" /> + style="@style/InCallButton" + android:background="@drawable/btn_merge" + android:contentDescription="@string/onscreenMergeCallsText" + android:visibility="gone" /> + style="@style/InCallButton" + android:visibility="gone" /> diff --git a/InCallUI/res/layout/primary_call_info.xml b/InCallUI/res/layout/primary_call_info.xml index 7c0a1811e..bfa4c7a13 100644 --- a/InCallUI/res/layout/primary_call_info.xml +++ b/InCallUI/res/layout/primary_call_info.xml @@ -39,32 +39,34 @@ android:paddingEnd="@dimen/call_banner_side_padding" android:paddingTop="@dimen/call_banner_primary_call_top_padding" android:paddingBottom="@dimen/call_banner_top_bottom_padding" - android:background="@color/incall_call_banner_background_color" > + android:background="@color/incall_call_banner_background_color"> + android:orientation="vertical" + android:layout_centerInParent="true" + android:animateLayoutChanges="true"> - - + android:orientation="horizontal"> + android:visibility="gone" /> - + + - - + - + - + + 100dp - 24dp + 16dp 8dp 8dp + 22sp 36sp - 18sp - 50sp - - 48dp + + 48dp 56dp - @dimen/in_call_button_height + @dimen/in_call_button_dimension 8dp @@ -66,8 +65,8 @@ holding the phone, *before* moving it up to your face and having the prox sensor kick in.) --> 20dp - 4dp - 4dp + 4dp + 2dp 10dp diff --git a/InCallUI/res/values/styles.xml b/InCallUI/res/values/styles.xml index f77cb24df..c5b5d4722 100644 --- a/InCallUI/res/values/styles.xml +++ b/InCallUI/res/values/styles.xml @@ -52,10 +52,12 @@ diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index e08c6207f..ced9f48ed 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -21,6 +21,7 @@ import android.graphics.drawable.Drawable; import android.os.Bundle; import android.telephony.DisconnectCause; import android.text.TextUtils; +import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; @@ -250,7 +251,12 @@ public class CallCardFragment extends BaseFragment