Эх сурвалжийг харах

Update layout

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 7 жил өмнө
parent
commit
48fd591ab0

+ 0 - 5
app/src/main/java/com/nextcloud/talk/activities/CallActivity.java

@@ -634,11 +634,6 @@ public class CallActivity extends AppCompatActivity {
                                 videoRendererHashMap.put(session, remoteRenderer);
                                 videoTrack.addRenderer(remoteRenderer);
                                 videosGrid.addView(relativeLayout);
-
-                                GridLayout.LayoutParams param = new GridLayout.LayoutParams(GridLayout.spec(
-                                        GridLayout.UNDEFINED,GridLayout.FILL,1f),
-                                        GridLayout.spec(GridLayout.UNDEFINED,GridLayout.FILL,1f));
-                                relativeLayout.setLayoutParams(param);
                             } catch (Exception e) {
                                 e.printStackTrace();
                             }

+ 4 - 2
app/src/main/res/layout/surface_renderer.xml

@@ -21,8 +21,10 @@
 
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                                 android:id="@+id/relative_layout"
-                                android:layout_width="match_parent"
-                                android:layout_height="match_parent"
+                                android:layout_width="0dp"
+                                android:layout_height="0dp"
+                                android:layout_columnWeight="1"
+                                android:layout_rowWeight="1"
                                 android:orientation="vertical">
 
     <org.webrtc.SurfaceViewRenderer