[android-developers] Problem with TabHost

2010-01-30 Thread scastria
I have followed the ApiDemos example in Tabs1 where the tab content is
inflated at runtime with code and a TabActivity is used.  Everything
works except when the TabActivity becomes active, I can see the
content of both tabs at the same time overlaying each other.  All of
my tab content has fill_parent for height and width, but I thought
FrameLayout is only supposed to show one at a time or that the TabHost
is supposed to control the visibility so only one is shown at a time.
To complicate things, I have expandable lists in each tab content so I
actually have 4 total children to the FrameLayout:  {2 expandable list
views for each tab and 2 TextViews which I assign as empty views for
each of the expandable list views when they have no data}

Any ideas?

-- 
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


[android-developers] problem with TabHost

2009-10-28 Thread tatman

I cannot get a tabhost with "xml resource" to work.  In the debugger I
see the exception "RuntimeException, Your content must have a TabHost
whose id attribute is 'android.R.id.tabhost'

I have set the id of my tabhost element to tabhost.  I've also set it
in pretty much every other control.  I've looked at a number of
"samples" nothing is standing out as to what I did wrong.  Im at a
loss.


http://schemas.android.com/apk/res/android";
  android:id="@+id/tabhost"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">
  

 
   
   
   
 
  


Any ideas  ?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---