Code For Android

Spinner and dropdown style 1

Posted by: admin on: December 31, 2011

http://stackoverflow.com/questions/4036492/why-does-my-android-spinner-display-the-radio-button-in-the-textview

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);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);

check mark in front of text

http://blog.csdn.net/ouyangtianhan/article/details/6564494

“@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>