Anybody knows how to create an Image Gallery inside a tab?
I know how to create Lists or Buttons or Text but when I try to create an Image Gallery or a Spinner (of images) inside a tab ... it does not work.
The code I use for the tab is the following (as simple as possible):
Using java Syntax Highlighting
- TabSpec ts1 = myTabHost.newTabSpec("TAB_TAG_1");
- ts1.setIndicator("Audio", r.getDrawable(R.drawable.audio));
- ts1.setContent(new TabHost.TabContentFactory(){
- public View createTabContent(String tag)
- {
- XXXXXXXXXXXXXX
- }
- });
- myTabHost.addTab(ts1);
Parsed in 0.034 seconds, using GeSHi 1.0.8.4
createTabContent contains the code to create the Gallery or Spinner (not included in the example since I used several files, one to create objects, another to order the images, etc.). It does not work (no coding errors, emulator is forced to close).
Should I use an Intent (creating a new activity for the Image Gallery) instead of creating a View with TabHost.TabContentFactory?
If anybody has any idea ....
Thanks


