0
當我試圖在一個相對佈局中創建兩個曲面視圖時,一個用於本地預覽框架和其他remoteview,我無法看到我的本地預覽幀。遠程視圖使用完整屏幕。它工作正常的豆形軟糖及以下版本,但在奇巧不工作(我工作的IP上視頻呼叫應用程序) 這裏是代碼片段我使用:問題當兩個SurfaceViews在Android的Kitlay相對佈局中創建
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/root_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFFFFF">
<SurfaceView
android:id="@+id/remote_surface"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:background="@drawable/layout_border"
/>
<SurfaceView
android:id="@+id/local_surface"
android:layout_height="180px"
android:layout_width="180px"
android:layout_marginBottom="-4dip"
android:layout_alignParentLeft="true"
android:layout_above="@+id/swap_camera"
android:background="@drawable/layout_border"
/>
</Relativelayout>
這樣做後,remote_surface不覆蓋整個屏幕,它是離開完整的寬度的屏幕,而不是180Px local_surface –