Update layout

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2017-11-23 22:35:34 +01:00
parent 65c4388a43
commit 48fd591ab0
2 changed files with 4 additions and 7 deletions

View file

@ -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();
}

View file

@ -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