implement "android:textOff" & "android:textOn" property for toggle button programatically in Android -


I'm trying to change the default on and off text on the toggle button in Android. I know how to do this in XML. My query is how to get this program into code.

Can someone please advise? thanks a lot.

Use ToggleButton.setTextOn (string) and Toggleton. Settestoff (string)

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -