Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android OPenGL+ XML integration

I'm making a media player application in android where one part of my screen has a animation which is made in OpenGL (ofcourse with Android/JAVA).....So my screen consists of 2 parts: 1) Left hand side consists of all the widgets (using xml). 2) Right hand side consists of the animation made in OpenGL.

I'm able to make the Gui (xml part) and also the animation (opengl). Can i integrate the GUI made in XML file with the animation (made using GLSurfaceview)?

like image 905
Rohan K Avatar asked Mar 02 '26 21:03

Rohan K


1 Answers

The APIDemos SurfaceViewOverlay example is the answe to my query....In xml file i have to give create a tag of GLSurfaceView like this:

            <android.opengl.GLSurfaceView android:id="@+id/glsurfaceview"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />
like image 143
Rohan K Avatar answered Mar 05 '26 11:03

Rohan K



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!