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
Just put this in your button.onClick
spinner.performClick();