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 -

javascript - What is an alternative to using getElementByClass for hiding multiple elements? -

c - Selecting a file randomly from a file system -