Android How to programmatically select spinner value?
I need to select several spinners organized in a row one above the other programmatic开发者_运维问答ally.
I see spinnerId.setSelection(index), setSelected(true)? Is there anything else I need to do to get these to show like a user selected them. I want for there selection handlers to get invoked, just like if a user made selection. do I need delay between them etc if they fetch data?
use something like asynctask to refersh the ui
Take a look at asynctask which works on UI thread and used primarily for updating the values on the screen. http://developer.android.com/reference/android/os/AsyncTask.html
精彩评论