Permalink
Browse files

Fix centered ring layout for real (copy from lockscreen)

Change-Id: Ib47ea8d78d7e5833abbe9494d19e9cfde4a2b66c
Signed-off-by: sethyx <sethyx@gmail.com>
  • Loading branch information...
sethyx committed Aug 23, 2012
1 parent 115b350 commit 8f3e361972ee7c76a0aef4dea4bc59dbdf74d546
Showing with 13 additions and 4 deletions.
  1. +13 −4 res/layout/incall_touch_ui.xml
@@ -203,16 +203,24 @@
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:gravity="top|center_horizontal"
+ android:layout_gravity="center_horizontal"
+ android:gravity="top"
prvandroid:targetDrawables="@array/incoming_call_widget_3way_targets"
prvandroid:targetDescriptions="@array/incoming_call_widget_3way_target_descriptions"
@@ -227,5 +235,6 @@
prvandroid:glowRadius="@*android:dimen/glowpadview_glow_radius"
prvandroid:pointDrawable="@*android:drawable/ic_lockscreen_glowdot"
/>
+ </FrameLayout>
</com.android.phone.InCallTouchUi>

0 comments on commit 8f3e361

Please sign in to comment.