Ok, I'm running into a hitch. Using setListAdapter() inside my TabActivity is making Android upset. Is there some other way to populate a tab with a ListView?
On Fri, Nov 20, 2009 at 3:18 PM, Mark Murphy <[email protected]>wrote: > Jason Mallet-Prevost wrote: > > Hi Mark, I owe you one after today haha. So in order to keep it all > > together in the same activity I would just create a separate Layout in > > my XML file and give it an ID I can pass to the TabHost? And then since > > its all in the same activity I can use onTabChanged() to run any updates > > to my database/adapters/cursors? > > Yes on all counts. Here's an example of using Views instead of activities: > > http://github.com/commonsguy/cw-android/tree/master/Fancy/Tab/ > > And, here's an example of adding additional tabs on the fly: > > http://github.com/commonsguy/cw-android/tree/master/Fancy/DynamicTab/ > > I don't have example code up that demonstrates the onTabChanged() stuff, > but I have used it, and it works pretty much as one might expect. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > _The Busy Coder's Guide to Android Development_ Version 2.8 > Available! > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

