I’m trying to see what method of the ToggleButton widget is used to check if it is switched to “on” or “off”, and I couldn’t make out of the reference if it’s isChecked() or isActivated()
What are the differences between the two?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The difference become clear from the documentation:
is View method and responsible for providing basic View state. Here is clear description of what activation is in Android terms.
From the other hand,
is more ‘high level’ property of another entity – CompoundButton and provides it’s state – is it ON or OFF.