You have a few options.
- Make your graphic larger and include the text.
- Use a LinearLayout and incorporate two TextViews around your ImageView.
- Subclass your overall view and draw the text in onDraw().
Pergunta
how to add the text "on" & "off" for the toggle button ? Do we need to add text also in image ?
Solução
You have a few options.
Outras dicas
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