askIT

Android Set selected spinner item with Java code

You can set the selected item index with a Java code.

int spinnerIndex = 1;
spinnerObject.setSelection(spinnerIndex);

Add comment

avatar_blank_60.png

Comment:

Name:

Email:

Comments

No comments yet. You can be the first one to comment. Just write your comment in the form and click on the submit button.