Возможно, мой вопрос может быть глупым. Я написал, чтобы узнать, есть ли возможность добавить два объекта SurfaceView под Relativelayout.
Мне нужен один вид поверхности для потоковой передачи видео сзади, а другой вид - спрайтовые анимации.
Я попытался поместить их в относительный макет, но предпочтение отдается поверхности, которую я поместил первым на макете, а второй вид исчезает.
Пожалуйста, предложите мне решение.
РЕДАКТИРОВАТЬ:
<RelativeLayout android:id="@+id/widget31"
android:orientation="vertical"
android:layout_width="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="fill_parent">
<LinearLayout android:layout_height="fill_parent" android:layout_width="fill_parent" android:id="@+id/widget30" android:orientation="vertical">
</LinearLayout>
<com.mycalss.CameraView
android:id="@+id/camerapreview" android:clickable="true"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:focusable="true"/>
</RelativeLayout>
Теперь я добавляю вид поверхности моей графики внутри linearlayout-widget30 в коде