Great, but I'm not sure how I use it. Can you provide some sample code
based on what I've currently got (below)?
private Spinner mDirectories;
List result1 = new ArrayList();
result1.add("Test");
ArrayAdapter adapter = new ArrayAdapter(
this, android.R.layout.simple_spinner_item,
(String[]) result1.toArray(new
String[result1.size()]));
adapter.setDropDownViewResource(android.R.layout.simple_spinner_item);
mDirectories.setAdapter(adapter);
On Mar 4, 7:16 am, TreKing <[email protected]> wrote:
> On Wed, Mar 3, 2010 at 10:07 PM, -DC- <[email protected]> wrote:
> > Does someone have a simple solution for this?
>
> Tip: when you can't find the functionality you need in a given class, check
> its base classes. In this case, you would find
> this:http://developer.android.com/intl/de/reference/android/widget/Adapter...)
>
> -------------------------------------------------------------------------------------------------
> TreKing - Chicago transit tracking app for Android-powered
> deviceshttp://sites.google.com/site/rezmobileapps/treking
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
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