Karnius wrote:
> I managed to manipulate forms element one item at a time, but when i
> need to populate more than one item like a listview and a spinner in
> the same apps i'm clueless,
> 
> I tried all sort of combinations, my bery basic understanding of java
> tell me I need to create a private class for my spinner, but I just
> get an empty spinner what ever I do.

You certainly do not need a private Activity class for a Spinner, 
considering that private Activity classes don't work, AFAIK.

> Can someone direct me to a tutorial that explain this or tell me
> anything that can help me?

You need to:

1. Create an XML layout that has both the ListView and the Spinner in 
it, laid out as you like (e.g., stacked on atop the other). If you call 
that layout main.xml, your HelloAndroid#onCreate() code already 
references it.

2. In the HelloAndroid#onCreate() implementation, alongside populating 
the list, populate the spinner. This is the code you have in your 
SpinnerDemo constructor.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to