From d3b9beaa804324bd5748d151310f4f2bc5d76ee9 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 14 Aug 2015 12:23:10 -0700 Subject: Scale call card fragment for all devices. Before we just wrapped content, which led to visual sadness on certain devices. + Scale call card fragment to one-third in portrait, to better space out the dialpad. + Scale call card fragment to half in landscape, to fix jank on N6 in landscape mode. + Shift up default photo so it is spaced evenly between the FAB and call card fragment or top of the screen. + Some other dimension/layout tweaks. Bug: 23218944 Bug: 23219273 Change-Id: I76801b64f6ae5d14a0d12cd55de7c60238eec5d7 --- InCallUI/res/layout-land/call_card_fragment.xml | 166 ++++++++++--------- InCallUI/res/layout/call_card_fragment.xml | 176 ++++++++++----------- InCallUI/res/layout/primary_call_info.xml | 3 +- InCallUI/res/values-sw360dp/dimens.xml | 3 - InCallUI/res/values/colors.xml | 2 + InCallUI/res/values/dimens.xml | 3 - .../src/com/android/incallui/CallCardFragment.java | 3 +- 7 files changed, 170 insertions(+), 186 deletions(-) (limited to 'InCallUI') diff --git a/InCallUI/res/layout-land/call_card_fragment.xml b/InCallUI/res/layout-land/call_card_fragment.xml index c02af1b03..663529313 100644 --- a/InCallUI/res/layout-land/call_card_fragment.xml +++ b/InCallUI/res/layout-land/call_card_fragment.xml @@ -16,18 +16,17 @@ ~ limitations under the License --> - + android:orientation="horizontal"> - - - - - + android:layout_height="wrap_content" + android:layout_gravity="bottom|center_horizontal" + android:layout_marginBottom="@dimen/call_buttons_bottom_margin" /> - + + + android:layout_width="0dp" + android:layout_weight="1"> - - - + android:layout_width="match_parent" + android:id="@+id/call_card_content"> - + - - + - + - + + + + - + - - + - - - + + android:layout_height="match_parent" /> + + + + + + - + diff --git a/InCallUI/res/layout/call_card_fragment.xml b/InCallUI/res/layout/call_card_fragment.xml index dabba7662..c2112b65b 100644 --- a/InCallUI/res/layout/call_card_fragment.xml +++ b/InCallUI/res/layout/call_card_fragment.xml @@ -16,34 +16,27 @@ ~ limitations under the License --> - - - + android:orientation="vertical"> + android:clipToPadding="false" + android:gravity="bottom"> - + - - - - - - - - - - - - - - - - - - + android:layout_height="0dp" + android:layout_weight="2"> - - + + + + + + + + + + + + + + + + + + + + - - - + + android:elevation="@dimen/dialpad_elevation" /> + + + + + + - + diff --git a/InCallUI/res/layout/primary_call_info.xml b/InCallUI/res/layout/primary_call_info.xml index 8f78440ba..a157121c4 100644 --- a/InCallUI/res/layout/primary_call_info.xml +++ b/InCallUI/res/layout/primary_call_info.xml @@ -23,7 +23,8 @@ - - 122dp 22sp 18sp diff --git a/InCallUI/res/values/colors.xml b/InCallUI/res/values/colors.xml index cac382deb..d77fe0b5f 100644 --- a/InCallUI/res/values/colors.xml +++ b/InCallUI/res/values/colors.xml @@ -32,6 +32,8 @@ @color/incall_background_color @color/incall_call_banner_text_color + #545454 + #cc000000 diff --git a/InCallUI/res/values/dimens.xml b/InCallUI/res/values/dimens.xml index 64853770c..a6ae2e28a 100644 --- a/InCallUI/res/values/dimens.xml +++ b/InCallUI/res/values/dimens.xml @@ -21,9 +21,6 @@ - 90dp 3dp diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index c2b969c98..aa91cb50a 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -1135,8 +1135,7 @@ public class CallCardFragment extends BaseFragment