소스 검색

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 년 전
부모
커밋
a6ff8da18b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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"