Trying to display OpenGL in a Tab

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Trying to display OpenGL in a Tab

Postby sentient » Fri Apr 03, 2009 12:14 pm

Hi guys
I'm using the IconifiedTextList example and extending it to try out the other android features in separate tabs
I'm using the OpenGL SurfaceViewActivity example in one of the tabs

This is how im calling the activity:

Code: Select all
tabHost.addTab(tabHost.newTabSpec("tabOpenGLViewLayout")
                .setIndicator("", getResources().getDrawable(R.drawable.icon))
                .setContent(new Intent(this, GLSurfaceViewActivity.class)));


However, it just displays a blank tab with a black background.

I'm guessing this is to do with the fact that it is a surface view - not sure though

can anyone give me any pointers?

cheers!
Do or do not, there is no try!
sentient
Freshman
Freshman
 
Posts: 8
Joined: Mon Feb 16, 2009 11:57 am
Location: London

Top

Postby sentient » Fri Apr 03, 2009 4:35 pm

got it to work, just placed the OpenGL tab at the top above the other tabs :)
still getting used to the layout file
Do or do not, there is no try!
sentient
Freshman
Freshman
 
Posts: 8
Joined: Mon Feb 16, 2009 11:57 am
Location: London

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 4 guests