开发者

Android How to programmatically select spinner value?

开发者 https://www.devze.com 2023-03-05 01:39 出处:网络
I need to select several spinners organized in a row one above the other programmatic开发者_运维问答ally.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消