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
Post a Comment