C
C
Chvalov2015-05-01 09:15:53
Java
Chvalov, 2015-05-01 09:15:53

How to make pressed state on click and normal on re-click in android?

I've searched all over google, yandex, yahoo and even Chinese baidu
I didn't find a normally working example at all :(
You need to leave it pressed when you click on the button, and when you click it again, return it back.
You need just a regular button.
Toggle button, radio button and do not offer checkboxes.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Gamega, 2015-05-01
@gadfi

try setPressed though i would still use radiobutton or whatever

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question