1<?xml version="1.0" encoding="utf-8"?> 2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:app="http://schemas.android.com/apk/res-auto" 4 xmlns:tools="http://schemas.android.com/tools" 5 android:orientation="vertical" 6 android:layout_width="match_parent" 7 android:layout_height="match_parent" 8 android:padding="8dp" 9 tools:context="org.webrtc.examples.androidnativeapi.MainActivity"> 10 11 <org.webrtc.SurfaceViewRenderer 12 android:id="@+id/local_renderer" 13 android:layout_width="match_parent" 14 android:layout_height="0dp" 15 android:layout_weight="1" 16 android:layout_margin="8dp"/> 17 18 <org.webrtc.SurfaceViewRenderer 19 android:id="@+id/remote_renderer" 20 android:layout_width="match_parent" 21 android:layout_height="0dp" 22 android:layout_weight="1" 23 android:layout_margin="8dp"/> 24 25 26 <LinearLayout 27 android:orientation="horizontal" 28 android:layout_width="match_parent" 29 android:layout_height="48dp" 30 style="?android:attr/buttonBarStyle"> 31 32 <Button 33 android:id="@+id/call_button" 34 android:text="@string/call_button" 35 style="?android:attr/buttonBarButtonStyle" 36 android:layout_width="0dp" 37 android:layout_height="48dp" 38 android:layout_weight="1" 39 android:layout_margin="8dp"/> 40 41 <Button 42 android:id="@+id/hangup_button" 43 android:text="@string/hangup_button" 44 style="?android:attr/buttonBarButtonStyle" 45 android:layout_width="0dp" 46 android:layout_height="48dp" 47 android:layout_weight="1" 48 android:layout_margin="8dp"/> 49 50 </LinearLayout> 51 52</LinearLayout> 53