summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/res/layout/call_card_fragment.xml15
-rw-r--r--InCallUI/res/values-h600dp/dimens.xml5
-rw-r--r--InCallUI/res/values-w600dp-land/dimens.xml5
-rw-r--r--InCallUI/res/values/dimens.xml7
-rw-r--r--InCallUI/src/com/android/incallui/CallCardFragment.java4
5 files changed, 26 insertions, 10 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
diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java
index 1a9f283b1..ad7269059 100644
--- a/InCallUI/src/com/android/incallui/CallCardFragment.java
+++ b/InCallUI/src/com/android/incallui/CallCardFragment.java
@@ -115,6 +115,7 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
private int mFabNormalDiameter;
private int mFabSmallDiameter;
private boolean mIsLandscape;
+ private boolean mHasLargePhoto;
private boolean mIsDialpadShowing;
// Primary caller info
@@ -1333,7 +1334,7 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
int offsetY = 0;
if (!mIsDialpadShowing) {
offsetY = mFloatingActionButtonVerticalOffset;
- if (mSecondaryCallInfo.isShown()) {
+ if (mSecondaryCallInfo.isShown() && mHasLargePhoto) {
offsetY -= mSecondaryCallInfo.getHeight();
}
}
@@ -1363,6 +1364,7 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
}
mIsLandscape = getResources().getBoolean(R.bool.is_layout_landscape);
+ mHasLargePhoto = getResources().getBoolean(R.bool.has_large_photo);
final ViewGroup parent = ((ViewGroup) mPrimaryCallCardContainer.getParent());
final ViewTreeObserver observer = parent.getViewTreeObserver();