On Wed, Dec 28, 2011 at 10:50 AM, Sreejith <[email protected]> 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*.

-- 
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to