Soft click on Android button

I have a button on which I want to simulate a click. performClick () does most of the job, but does not animate the buttons. I tried setPressed and setEnabled, but not cubes.

0
source share
2 answers

The call is invalid after setPressed to force the view to redraw:

btn.setPressed(true); btn.invalidate(); 
+7
source

Try using the Monkey tool.

0
source

All Articles