Som*_* Ri 4 android opengl-es glsurfaceview
可以在GLSurfaceView上添加LinearLayout吗?如何在GLSurfaceView上叠加LinearLayout?也许GLSurfaceView是Game playground,LinearLayout是菜鸟〜
Jam*_*ote 12
使用FrameLayout.将GLSurfaceView作为FrameLayout中的第一个视图,然后添加LinearLayout秒.这会将linearLayout及其中的任何内容放在GLSurfaceView的顶部:
<FrameLayout
android:id="@+id/graphics_frameLayout1"
android:layout_width="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent">
<android.opengl.GLSurfaceView
android:id="@+id/graphics_glsurfaceview1"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</android.opengl.GLSurfaceView>
<LinearLayout
android:layout_height="fill_parent"
android:id="@+id/linearLayout1"
android:gravity="center"
android:layout_width="fill_parent"
android:orientation="vertical">
</LinearLayout>
</FrameLayout>
Run Code Online (Sandbox Code Playgroud)
编辑:现在有了图片:
