ImageView の上に SurfaceView を設定したいと思います。以下のコードとレイアウトを使用しました。イメージビューの上にサーフェスビューを設定しましたが、サーフェスビューをすべてのビューの一番上に設定しました。
ImageView の上に SurfaceView を設定する他の方法はありますか。
私を助けてください。
コード :
setEGLConfigChooser(8, 8, 8, 8, 16, 0);
getHolder().setFormat(PixelFormat.TRANSLUCENT);
setZOrderOnTop(true);
レイアウト
<FrameLayout
android:id="@+id/topFrameLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<!-- ImageView for the product -->
<ImageView
android:id="@+id/photoImageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<com.amplimesh.renderer.RendererView
android:id="@+id/renderer_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent" />