Related to this, you could drop multiple ListFragments on an Activity too. On Wed, Mar 20, 2013 at 3:52 PM, Craig Dunn <[email protected]> wrote: > It depends on the type of Activity you're using. > > A ListActivity has a 'built in' ListView, does not require a corresponding > AXML layout file, and supports just the one list which you set via the > ListAdapter property (as you noted in your email). I guess this is what you > are seeing in the examples. > > Instead, use an Activity (NOT ListActivity). Then you can create an AXML > layout file with a number of ListView controls. > Use SetContentView() to load the relevant AXML resource. > Access the controls using FindViewById<ListView> so you can set an adapter > against each one. > > HTH > > > On Wed, Mar 20, 2013 at 2:41 PM, Paul Johnson <[email protected]> > wrote: >> >> Hi, >> >> I'm writing an app for a friend and he wants the UI to look more or less >> the same as the Win mobile version he has. One of the views has 4 listviews >> on which are bound to the SQLlite database. >> >> I've constructed the layout to look the same, but the implementation has >> me stumped. >> >> Reading the tutorial docs, it seems to propogate the lists, I use >> something like >> >> ListAdapter = new ArrayAdapter<string>(this, Resource.Layout.list_item, >> money); >> >> This is fine, but obviously the app doesn't know which listview to put >> this into. >> >> By the looks of it, I should be able to use lstMyListView.SetAdapter() to >> set the adapter to use, but from what I can see, this is pretty much the >> same as a custom view (but doesn't look like it should!) >> >> Does anyone have some code I could look at for how to do what I need my >> app to do or any pointers on implementation, I'd appreciate it. >> >> Thanks >> >> Paul >> >> -- >> "Space," it says, "is big. Really big. You just won't believe how vastly, >> hugely, mindbogglingly big it is. I mean, you may think it's a long way down >> the road to the chemist's, but that's just peanuts to space, listen..." >> Hitch Hikers Guide to the Galaxy, a truly remarkable book! >> >> _______________________________________________ >> Monodroid mailing list >> [email protected] >> >> UNSUBSCRIBE INFORMATION: >> http://lists.ximian.com/mailman/listinfo/monodroid > > > > _______________________________________________ > Monodroid mailing list > [email protected] > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid >
-- http://www.opgenorth.net _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
