[android-developers] Re: problem with TabHost

2009-10-29 Thread Kevin Bailey

On Wed, Oct 28, 2009 at 06:40:24PM -0700, tatman wrote:
> 
> 
>xmlns:android="http://schemas.android.com/apk/res/android";
>   android:id="@+id/tabhost"

Don't know if it will help but my main.xml file says:

android:id="@android:id/tabhost"

--~--~-~--~~~---~--~~
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] Re: problem with TabHost

2009-10-29 Thread tatman



On Oct 29, 10:38 am, Kevin Bailey 
wrote:

> > 
> >  >   xmlns:android="http://schemas.android.com/apk/res/android";
> >   android:id="@+id/tabhost"
>
> Don't know if it will help but my main.xml file says:
>
>     android:id="@android:id/tabhost"

indeed!  where I got that from IDK.  But that did correct that
exception.

Thnx :)

now on the next

--~--~-~--~~~---~--~~
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] Re: Problem with TabHost

2010-01-30 Thread scastria
I changed over to use TabContentFactory based on the ApiDemos Tabs2
demo.  This seemed to work better in that only one tab content was
displayed at one time.  However, this time, the emptyView that I set
on my expandable list views never show.  When the expandable list
adapter is empty, the tab content is completely blank.  I debugged to
verify that the list adapter isEmpty() and it was true.  So I further
had to customize my TabContentFactory to check if the list adapter was
empty and return the empty view directly instead of setting it on the
expandable list view as its empty view.  All of this finally worked,
but I basically spent 10 hours trying to get something to work which
seemed trivial at first.  I seem to have this problem a lot with the
android SDK.  I try what I think is correct based on ApiDemos examples
only to find out that something isn't quite right causing me to redo
it several different ways until I find something that works.  I am a
very experienced Swing developer so I should know what I am doing.  I
am hoping it is just that the android SDK is still in its infancy and
has some bugs to work out?

On Jan 30, 7:50 pm, scastria  wrote:
> 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