views:

103

answers:

1

Hi,

I have a question in regards to http://developer.android.com/resources/tutorials/views/hello-tabwidget.html Lots of issues are already discussed but this example only works for me if I in the onCreate() method do NOT use setContentView(R.layout.main); Why is that? What do I have to do if I want to mix a tab layout with other elements?

Thanks. paradroid666

A: 

Thank you very much for finding this out. I had the problem, that my TabActivity showed the tab-bar but didn't show the content of the tabs/activities. After removing the setContentView(R.layout.main) in the TabActivity it now shows the tab-content.

white_gecko