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

php - Creating canonical URLs with custom route-classes -

mysql - Formatting problem with PHP DateTime Difference when used as part of an equation -

Mysql Local server hardware -