Skip to content
Browse files

Merge "Fix center layout on manually lowered DPI" into jb-mr1

  • Loading branch information...
2 parents 8033bdb + f3ea87d commit 1f5c174a27908eb7233741dbb730d9bfdc450d4b Gergely Szell (sethyx) committed with Gerrit Code Review
Showing with 12 additions and 3 deletions.
  1. +12 −3 res/layout/incall_touch_ui.xml
View
15 res/layout/incall_touch_ui.xml
@@ -204,15 +204,23 @@
don't have an icon in the downward direction so the whole
bottom area of this widget is just wasted space.
-->
- <com.android.internal.widget.multiwaveview.GlowPadView
- android:id="@+id/incomingCallWidget"
+ <FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center|bottom"
+ android:orientation="vertical"
+ android:gravity="bottom"
+ android:background="@color/incall_call_banner_background">
+
+ <com.android.internal.widget.multiwaveview.GlowPadView
+ android:id="@+id/incomingCallWidget"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
android:layout_marginTop="20dip"
android:layout_marginBottom="-46dp"
- android:background="@color/incall_call_banner_background"
android:visibility="gone"
+ android:layout_gravity="center_horizontal"
android:gravity="top"
prvandroid:targetDrawables="@array/incoming_call_widget_3way_targets"
@@ -228,5 +236,6 @@
prvandroid:glowRadius="@*android:dimen/glowpadview_glow_radius"
prvandroid:pointDrawable="@*android:drawable/ic_lockscreen_glowdot"
/>
+ </FrameLayout>
</com.android.phone.InCallTouchUi>

0 comments on commit 1f5c174

Please sign in to comment.
Something went wrong with that request. Please try again.