我已经实现按钮,点击并作为描述的微调打开对话框里面的这里
I have implemented button which clicks and opens dialog with spinner inside as described here
然而,这两次点击。一打开对话框,一个用于打开微调。我想微调器只需单击按钮打开?如何才能做到这一点?
However this is two clicks. One to open dialog and one to open spinner. I want the spinner to open with a single click of the button? How can this be done?
反正是有只开放式微调的按钮点击W / O将对话框。如果不是我怎么能打开对话视图,且具有微调的同时打开。
Is there anyway to just open spinner from button click w/o going to dialog. If not how can I open dialog view and have the spinner open at same time.
只是把这个在你的button.onClick
Just put this in your button.onClick
spinner.performClick();