diff options
author | Nancy Chen <nancychen@google.com> | 2016-02-11 17:52:33 -0800 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2016-02-12 13:38:07 -0800 |
commit | 82c771798060de0be025c7c6c669cb4ccbd18997 (patch) | |
tree | 5823343e25c05deedce574c4cb7a262dd1a5f8d2 /InCallUI/res | |
parent | bace43b404bb207ca6cec066cdea752f41bca6c3 (diff) |
Make secondary info visible for multi-window InCallUI.
Secondary info was previously hidden after the layout refactoring to
support resizing in multi-window mode. Make it visible and also keep it
at the bottom of the screen because the vertical screen real estate is
limited.
Bug: 26253432
Change-Id: I8e7f3b462784c7af62ccdb95e637595f7d382edd
Diffstat (limited to 'InCallUI/res')
-rw-r--r-- | InCallUI/res/layout/call_card_fragment.xml | 15 | ||||
-rw-r--r-- | InCallUI/res/values-h600dp/dimens.xml | 5 | ||||
-rw-r--r-- | InCallUI/res/values-w600dp-land/dimens.xml | 5 | ||||
-rw-r--r-- | InCallUI/res/values/dimens.xml | 7 |
4 files changed, 23 insertions, 9 deletions
diff --git a/InCallUI/res/layout/call_card_fragment.xml b/InCallUI/res/layout/call_card_fragment.xml index 09e148512..4c600bd05 100644 --- a/InCallUI/res/layout/call_card_fragment.xml +++ b/InCallUI/res/layout/call_card_fragment.xml @@ -44,21 +44,22 @@ android:layout_height="wrap_content" android:layout_gravity="center_horizontal" /> - <!-- Secondary "Call info" block, for the background ("on hold") call. --> - <include layout="@layout/secondary_call_info" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_gravity="bottom" /> - </LinearLayout> <!-- Placeholder for the dialpad which is replaced with the dialpad fragment when shown. --> <FrameLayout android:id="@+id/answer_and_dialpad_container" android:layout_width="match_parent" - android:elevation="7dp" + android:elevation="@dimen/dialpad_elevation" android:layout_height="match_parent" /> + <!-- Secondary "Call info" block, for the background ("on hold") call. --> + <include layout="@layout/secondary_call_info" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:elevation="4dp" + android:layout_alignParentBottom="true" /> + <FrameLayout android:id="@+id/floating_end_call_action_button_container" android:layout_width="@dimen/end_call_floating_action_button_diameter" diff --git a/InCallUI/res/values-h600dp/dimens.xml b/InCallUI/res/values-h600dp/dimens.xml index 12f48d9b5..978efde40 100644 --- a/InCallUI/res/values-h600dp/dimens.xml +++ b/InCallUI/res/values-h600dp/dimens.xml @@ -16,9 +16,14 @@ --> <resources> + <!-- Whether or not this layout displays a large photo. --> + <bool name="has_large_photo">true</bool> + <dimen name="call_banner_height">90dp</dimen> <dimen name="end_call_button_margin_bottom">15dp</dimen> <dimen name="floating_action_button_vertical_offset">-24dp</dimen> + + <dimen name="dialpad_elevation">2dp</dimen> </resources> diff --git a/InCallUI/res/values-w600dp-land/dimens.xml b/InCallUI/res/values-w600dp-land/dimens.xml index 59a5a9a87..d91318f5e 100644 --- a/InCallUI/res/values-w600dp-land/dimens.xml +++ b/InCallUI/res/values-w600dp-land/dimens.xml @@ -16,6 +16,9 @@ --> <resources> + <!-- Whether or not this layout displays a large photo. --> + <bool name="has_large_photo">true</bool> + <!-- Whether or not the landscape mode layout is currently being used --> <bool name="is_layout_landscape">true</bool> <!-- Height and width of the in-call buttons. --> @@ -23,4 +26,6 @@ <!-- Margin underneath the call buttons. This is used only in landscape mode and is sized so that the call buttons are center aligned with the end call button. --> <dimen name="call_buttons_bottom_margin">30dp</dimen> + + <dimen name="dialpad_elevation">2dp</dimen> </resources> diff --git a/InCallUI/res/values/dimens.xml b/InCallUI/res/values/dimens.xml index d6c47a2c7..b3c569e7d 100644 --- a/InCallUI/res/values/dimens.xml +++ b/InCallUI/res/values/dimens.xml @@ -16,6 +16,9 @@ --> <resources> + <!-- Whether or not this layout displays a large photo. --> + <bool name="has_large_photo">false</bool> + <!-- Whether or not the landscape mode layout is currently being used --> <bool name="is_layout_landscape">false</bool> @@ -57,8 +60,8 @@ <!-- Height and width of the in-call buttons. --> <dimen name="in_call_button_dimension">48dp</dimen> - <dimen name="primary_call_elevation">5dp</dimen> - <dimen name="dialpad_elevation">2dp</dimen> + <dimen name="primary_call_elevation">0dp</dimen> + <dimen name="dialpad_elevation">5dp</dimen> <!-- The InCallUI dialpad will sometimes want digits sizes that are different from dialer. Note: These are the default sizes for small (<600dp height) devices: larger screen sizes |