After spending a lot of time trying to re-invent the ArrayAdapter, I
came across this:

ArrayAdapter adapter = new ArrayAdapter<CharSequence>(
                                          this,
                                         android.R.layout.simple_spinner_item,
                        new CharSequence[] {"asdf","eeee","rrrr"});

On Aug 13, 12:47 pm, "tinyang" <[email protected]> wrote:
> Here is a webpage with a menu.add() 
> example:http://www.brighthub.com/mobile/google-android/articles/28673.aspx
>
> This example is what I am referring to with menu.add().
>
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Jack Ha
> Sent: Thursday, August 13, 2009 2:32 PM
> To: Android Beginners
> Subject: [android-beginners] Re:Populatespinner
>
> Can you be more specific on what you mean "menu.add()"?
>
> --
> Jack Ha
> Open Source Development Center
> ・T・ ・ ・Mobile・ stick together
>
> The views, opinions and statements in this email are those of the author 
> solely in their individual capacity, and do not necessarily represent those 
> of T-Mobile USA, Inc.
>
> On Aug 13, 11:55 am, "tinyang" <[email protected]> wrote:
> > Is the only way topopulateaspinnerto use an array, or can
> > something like the menu.add() be used?
>
> > --
> > :-)
>
> > P Please don't print this e-mail unless you really need to.
>
> No virus found in this incoming message.
> Checked by AVG -http://www.avg.com
> Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/12/2009 
> 6:12 PM
>
>

--~--~---------~--~----~------------~-------~--~----~
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