View, Layout
뷰와 레이아웃에 대해 소개합니다.
Introduction
SurfaceViewRender
<RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/darker_gray" android:layout_alignParentBottom="false" android:layout_weight="2"> <org.webrtc.SurfaceViewRenderer android:id="@+id/remote_video_view" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <org.webrtc.SurfaceViewRenderer android:id="@+id/local_video_view" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </RelativeLayout>SurfaceViewRender localRender = (SurfaceViewRenderer) findViewById(R.id.local_video_view); SurfaceViewRender remoteRender = (SurfaceViewRenderer) findViewById(R.id.remote_video_view);localRender.setZOrderMediaOverlay(true/false);localRender.setMirror(false);localRender.setScalingType(RendererCommon.ScalingType);
PercentFrameLayout
Last updated
