Friday, June 29, 2012

Re: [android-developers] Is it possible implement an Android spinner with out using the XML layout file ?

Narendra Singh Rathore wrote:
> On Wed, Dec 28, 2011 at 10:50 AM, Sreejith <sreejithg.pjr@gmail.com> wrote:
>
> > Is it possible implement an Android spinner with out using the XML
> > layout file ?
> >
> > In all examples their is a use of an XML file reference (like
> > android.R.layout.simple_spinner_item) for setAdapter function usage.If
> > not can anybody please mention the reason ?
>
>
>
> No, its not possible because the constructor of ArrayAdapter class takes *
> textViewResourceId* (resource id of textview) as an argument. And that
> resource id is *integer type constant*, which in above case is *
> android.R.layout.simple_spinner_item*.

of course it's possible, you don't have to use ArrayAdapter after all

pskink

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate