Not sure you need this:
String data[] = new String[] { "A", "B", "C" } ;
Spinner s2 = (Spinner)tbl.findViewById(R.id.spinner);
ArrayAdapter<String> adapter2 = new ArrayAdapter<String>(this,
R.layout.spinner_item, data);
adapter2.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_it
em);
s2.setAdapter(adapter2);
Regards
> Hi!
>
> Can anyone provide a way for populating the Spinner control using a
> local array of Strings and not a Resource. Most of the examples are
> either based on database adapters or resource based arrays.
>
> Regards
> Nitin
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---