Code For Android

Spinner and dropdown style 1

Posted by: admin on: December 31, 2011

use simple_spinner_item instead of simple_spinner_dropdown_item while creating your adapter

If you want to keep radio button in the spinner, but not in the textview then do this:

adapter = new ArrayAdapter(activity, R.layout.simple_spinner_item);

check mark in front of text

“@android:id/empty” creates an empty drawable

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>