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 - BLOB/TEXT column 'value' used in key specification without a key length -

mysql - php global within a class but outside a function? -