Ver código fonte

Maintain aspect ratio on navbar screen

Anwar Mohammad Abdul 7 anos atrás
pai
commit
8c9d349002

+ 3 - 0
app/src/main/res/layout-land/surface_nav.xml

@@ -4,6 +4,7 @@
     android:id="@+id/container"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
+    android:background="@android:color/black"
     android:orientation="horizontal"
     android:weightSum="2">
 
@@ -11,6 +12,8 @@
         android:id="@+id/decoder_surface"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
+        android:layout_marginBottom="10dp"
+        android:layout_marginTop="10dp"
         android:layout_weight="1" />
 
     <LinearLayout

+ 4 - 1
app/src/main/res/layout/surface_nav.xml

@@ -4,6 +4,7 @@
     android:id="@+id/container"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
+    android:background="@android:color/black"
     android:weightSum="2"
     android:orientation="vertical">
 
@@ -11,6 +12,8 @@
         android:id="@+id/decoder_surface"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
+        android:layout_marginLeft="10dp"
+        android:layout_marginRight="10dp"
         android:layout_weight="1" />
 
     <LinearLayout
@@ -55,4 +58,4 @@
 
     </LinearLayout>
 
-</LinearLayout>
+</LinearLayout>

BIN
release/scrcpy-release.apk