Re: [android-developers] ListView inside a tabhost not displaying content initially

2012-06-20 Thread Simon Giddings
Hi Justin, Yes, you are right. I went too fast in my reply. I did indeed make the two calls and it did indeed work. I was wanting to limit the number of resources needed in this activity - where in my use of one unique ListView. After this short discussion, I think I will try to use a single

Re: [android-developers] ListView inside a tabhost not displaying content initially

2012-06-20 Thread Justin Anderson
> > If I call tabhost.setCurrentTab(1) instead of tabhost.setCurrentTab(0), > then the initial display is correct. > I think you misunderstood me... I wanted you to call both of them... First, set the current tab to 1 and then to 0... Does the listview display correctly on tab 0 if you do this?

Re: [android-developers] ListView inside a tabhost not displaying content initially

2012-06-20 Thread Simon Giddings
Wow, I hadn't expected replies so quickly ! @MagouyaWare - To answer your question, the OnTabChangedListener code rebuilds the listview content. I have indeed stepped through this to ensure that it does this correctly before the first display. If I call tabhost.setCurrentTab(1) instead of tabho

Re: [android-developers] ListView inside a tabhost not displaying content initially

2012-06-20 Thread Justin Anderson
Also, what does your OnTabChangedListener code do? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Jun 20, 2012 at 9:46 AM, Justin Anderson wrote: > Just out of curiosity, try doing this: > > *tabhost.setCurrentTab(1); > tabhost.setCurrentTab(0); >

Re: [android-developers] ListView inside a tabhost not displaying content initially

2012-06-20 Thread Justin Anderson
Just out of curiosity, try doing this: *tabhost.setCurrentTab(1); tabhost.setCurrentTab(0); * Does your list show up at that point? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Jun 20, 2012 at 9:41 AM, Simon Giddings wrote: > I have a TabActivi

Re: [android-developers] ListView inside a tabhost not displaying content initially

2012-06-20 Thread Mark Murphy
On Wed, Jun 20, 2012 at 11:41 AM, Simon Giddings wrote: > I have a TabActivity containing a series of four tabs and a listview. > Each of the tabs reference the same listview. I have no idea if this is supported. > What is the solution ? Try using separate ListViews, one per tab. -- Mark Murp

[android-developers] ListView inside a tabhost not displaying content initially

2012-06-20 Thread Simon Giddings
I have a TabActivity containing a series of four tabs and a listview. Each of the tabs reference the same listview. When the activity is initially displayed, the listview is not displayed. However, clicking on another tab will display it correctly and clicking back on the first tab will also displ