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.
The call is invalid after setPressed to force the view to redraw:
btn.setPressed(true); btn.invalidate();
Try using the Monkey tool.