views:

483

answers:

3

friends,

can any one guide me how to create editable spinner in android?

any help would be appriciated.

+2  A: 

Have you tried reading any tutorials?

For example: http://developer.android.com/guide/tutorials/views/hello-spinner.html http://www.designerandroid.com/?p=8

and so forth. Google for android spinner tutorials.

Steve H
A: 

If editable you should use AutoCompleteTextView.

dtmilano
A: 

0 down vote favorite

Hello,

I changed the ArrayAdapter method of spinner and i got my custom Spinner. just change the parameter of this method like

Spinner spinner = (Spinner) findViewById(R.id.Spinner01); ArrayAdapter adapter=ArrayAdapter.createFromResource(This,R.array.statename,R.layout.mylayout); spinner.setAdapter(adp);

In Which the mylayout file contains

I hope this will helps you.

Dhrumil Shah