Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: how to switch button's pressed state programmatically?

I have a button with 2 distinct pictures for pressed and released state. How do I switch the state programmatically?

like image 343
Violet Giraffe Avatar asked Oct 31 '11 18:10

Violet Giraffe


1 Answers

View.setPressed(boolean)

like image 165
Jason Robinson Avatar answered Sep 20 '22 07:09

Jason Robinson