From e8645f36f3c9ddbfaf8f9e104886ced4019787d9 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Fri, 16 May 2014 10:11:28 -0700 Subject: Further improvements to InCall transition animation * Remove unneeded parent layouts in call_card.xml * Individual child views in the call card container now translate upwards Bug: 14820894 Change-Id: I04411b76f99b4d519d4ef30400f134e8b9191aa6 --- InCallUI/res/layout/call_card.xml | 3 +- InCallUI/res/layout/primary_call_info.xml | 171 ++++++++++++++---------------- InCallUI/res/values/dimens.xml | 2 + 3 files changed, 86 insertions(+), 90 deletions(-) (limited to 'InCallUI/res') diff --git a/InCallUI/res/layout/call_card.xml b/InCallUI/res/layout/call_card.xml index cfcd98073..cf7a49009 100644 --- a/InCallUI/res/layout/call_card.xml +++ b/InCallUI/res/layout/call_card.xml @@ -48,7 +48,8 @@ android:orientation="vertical" android:translationZ="@dimen/primary_call_translation_z" android:background="@color/incall_call_banner_background_color" - > + android:clipChildren="false" + android:clipToPadding="false" > diff --git a/InCallUI/res/layout/primary_call_info.xml b/InCallUI/res/layout/primary_call_info.xml index 048164bd6..ea1d69f69 100644 --- a/InCallUI/res/layout/primary_call_info.xml +++ b/InCallUI/res/layout/primary_call_info.xml @@ -16,115 +16,108 @@ ~ limitations under the License --> - - - + + + + + + + android:textAppearance="?android:attr/textAppearanceLarge" + android:textSize="@dimen/call_status_text_size" + android:singleLine="true" + android:gravity="start" + android:ellipsize="end" /> - - + android:fontFamily="sans-serif-light" + android:textAppearance="?android:attr/textAppearanceLarge" + android:textSize="@dimen/call_name_text_size" + android:singleLine="true" /> - - + + + + android:layout_weight="1" + android:orientation="horizontal"> - - - + android:textDirection="ltr" /> - - - - - - - - - - - - - - - + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@color/incall_call_banner_secondary_text_color" + android:textSize="@dimen/call_label_text_size" + android:singleLine="true" + android:layout_marginStart="6dp" /> - - + + android:textColor="@color/incall_call_banner_secondary_text_color" + android:singleLine="true" + android:visibility="gone" /> - + - + + + + \ No newline at end of file diff --git a/InCallUI/res/values/dimens.xml b/InCallUI/res/values/dimens.xml index af608a6cf..c7b02bb0b 100644 --- a/InCallUI/res/values/dimens.xml +++ b/InCallUI/res/values/dimens.xml @@ -100,4 +100,6 @@ 2dp 8dp + + 50dp -- cgit v1.2.3