Browse Source

Fix horizontal (=landscape) call design

Without this fix, the call buttons became huge in landscape mode.

The LinearLayout of the callControls now has a fixed width which comes in handy in landscape mode.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe 2 năm trước cách đây
mục cha
commit
a6ff8da18b
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/src/main/res/layout/call_activity.xml

+ 2 - 1
app/src/main/res/layout/call_activity.xml

@@ -181,8 +181,9 @@
 
     <LinearLayout
         android:id="@+id/callControls"
-        android:layout_width="match_parent"
         android:layout_height="@dimen/call_controls_height"
+        android:layout_width="450dp"
+        android:layout_centerHorizontal="true"
         android:paddingHorizontal="@dimen/call_controls_padding_horizontal"
         android:layout_alignBottom="@id/linearWrapperLayout"
         android:animateLayoutChanges="true"