[DO NOT MERGE] Adjust multi-window UI for InCallUI <100% modes.
This CL is a direct copy from ag/864936. The original CL missed the move
from InCallUI to Dialer/InCallUI.
Origianl description:
Multi-window mode reduces the available screen real estate for the
InCallUI. As a result, some changes need to be made so important
information is still shown. When the UI has <100% of its normal screen
real estate:
* Remove large photo
* Shift hangup button down
the way the resource files should be interpreted:
* The base layout/ is the default layout, in this case, it is the
multi-window layout
* layout-h600hdp is the layout used when the screen height is >=600 dp,
which is the layout in 100% screen size (this is a direct copy of the
old layout/ file(s)
* layout-w600dp-land is the layout used when the device is in landscape
mode with a width >=600 dp (this is a direct renaming from *-land/)
Bug:26253432
Change-Id: I3db194a1e5b3334d10ab76806644b1a0769ad777
(cherry picked from commit fc1929393b506e7f7665be49424336ac2b7a02ae)
diff --git a/InCallUI/res/values/dimens.xml b/InCallUI/res/values/dimens.xml
index 439bb41..d6c47a2 100644
--- a/InCallUI/res/values/dimens.xml
+++ b/InCallUI/res/values/dimens.xml
@@ -21,7 +21,9 @@
<!-- Dimensions for CallCard elements (the normal in-call UI) -->
- <dimen name="call_banner_height">90dp</dimen>
+ <dimen name="call_banner_height">0dp</dimen>
+ <dimen name="call_banner_vertical_margin">20dp</dimen>
+
<dimen name="incall_action_bar_elevation">3dp</dimen>
<!-- Margin between the bottom of the "call card" photo
@@ -68,7 +70,7 @@
<dimen name="dialpad_digits_adjustable_height">50dp</dimen>
<dimen name="dialpad_key_numbers_size">36dp</dimen>
- <dimen name="floating_action_button_vertical_offset">-24dp</dimen>
+ <dimen name="floating_action_button_vertical_offset">-10dp</dimen>
<dimen name="call_button_margin_vertical">8dp</dimen>
<dimen name="call_button_margin_horizontal">6dp</dimen>
@@ -104,7 +106,7 @@
<!-- Height of translucent shadow effect -->
<dimen name="translucent_shadow_height">2dp</dimen>
- <dimen name="end_call_button_margin_bottom">8dp</dimen>
+ <dimen name="end_call_button_margin_bottom">2dp</dimen>
<dimen name="call_card_anim_translate_y_offset">50dp</dimen>