Mark,

Ran hierarchyviewer and all is as expected.  The Listview is (visible)
when its supposed to be and (gone) when it supposed to be.

The Listviews are setup once in OnCreate and never modified, that is
why I cannot understand what could cause it or them  to disappear.
Here is the code:

ListView list1 = (ListView) findViewById(R.id.tab1);
                list1.setAdapter(ArrayAdapter.createFromResource(
                                this, R.array.books, R.layout.tab_row));

                ListView list2 = (ListView) findViewById(R.id.tab2);
                list2.setAdapter(ArrayAdapter.createFromResource(
                                this, R.array.cards, R.layout.tab_row));

                ListView list3 = (ListView) findViewById(R.id.tab3);
                list3.setAdapter(ArrayAdapter.createFromResource(
                                this, R.array.letters, R.layout.tab_row));

                TabHost tabs = (TabHost) findViewById(R.id.tabhost);

                tabs.setup();

                TabHost.TabSpec spec = tabs.newTabSpec("tag1");
                spec.setContent(R.id.tab1);
                spec.setIndicator("Books", getResources().getDrawable(
                                R.drawable.bookt_tab));
                tabs.addTab(spec);

                spec = tabs.newTabSpec("tag2");
                spec.setContent(R.id.tab2);
                spec.setIndicator("Cards", getResources().getDrawable(
                                R.drawable.cardt_tab));
                tabs.addTab(spec);

                spec = tabs.newTabSpec("tag3");
                spec.setContent(R.id.tab3);
                spec.setIndicator("Letters", getResources().getDrawable(
                                R.drawable.lettert_tab));
                tabs.addTab(spec);

                tabs.setCurrentTab(0);

Thanks,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to