Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android OPEN spinner with single button click

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?

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.

like image 868
Androider Avatar asked Feb 26 '11 09:02

Androider


1 Answers

Just put this in your button.onClick

spinner.performClick();
like image 114
Flexo Avatar answered Oct 18 '22 01:10

Flexo