My problem is similar to question posted here. I want an Android button to stay pressed. I cannot follow the solution provided because onClick will be called when a button is pressed via keyboard or trackball and i need to handle that.
I tried setting button.setPressed(true); in onClick callback , but it doesn't seem to work. Is there a way to do this?
 
     
     
    