Use the following:
spinnerObject.setSelection(INDEX_OF_CATEGORY2)
.
More Related Contents:
- How to change spinner text size and text color?
- Android Spinner: Get the selected item change event
- Android: How to bind spinner to custom object list?
- How to keep onItemSelected from firing off on a newly instantiated Spinner?
- Android: Create spinner programmatically from array
- How to get Spinner value?
- Android: Where is the Spinner widget’s text color attribute hiding?
- Spinner does not wrap text — is this an Android bug?
- How to set font custom font to Spinner text programmatically?
- Multi selection spinner in android without AlertDialog
- Android – configure Spinner to use array
- Set Key and Value in spinner
- Android: setSelection having no effect on Spinner
- Spinner : onItemSelected not called when selected item remains the same
- How to wrap lengthy text in a spinner? [duplicate]
- Android Spinner with different layouts for “drop down state” and “closed state”?
- android change text color of items in spinner
- How to hide one item in an Android Spinner
- How to add a Hint in spinner in XML
- How to add items to a spinner in Android?
- How to create android spinner without down triangle on the right side of the widget
- Creating a setError() for the Spinner
- Android: two Spinner onItemSelected()
- How to dynamically populate Android spinner with text + image
- Adding spinner to ActionBar (not Navigation
- How to color and alignment spinner item on android?
- Spinner onItemSelected called erroneously (without user action)
- How do I create an Android Spinner as a popup?
- How can I use onItemSelected in Android?
- Text color of a closed spinner