Reputation: 545
how to add the text "on" & "off" for the toggle button ? Do we need to add text also in image ?
Upvotes: 1
Views: 1454
Reputation: 26
If you are using XML to generate the toggle button you would use android:textOn
and android:textOff
in your ToggleButton<>
Source: http://developer.android.com/reference/android/widget/ToggleButton.html#attr_android:textOn
Upvotes: 0
Reputation: 19474
You have a few options.
Upvotes: 2