Вы можете использовать следующее для установки текста из кода:
toggleButton.setText(textOff);
// Sets the text for when the button is first created.
toggleButton.setTextOff(textOff);
// Sets the text for when the button is not in the checked state.
toggleButton.setTextOn(textOn);
// Sets the text for when the button is in the checked state.
Чтобы задать текст с помощью xml, используйте следующее:
android:textOff="The text for the button when it is not checked."
android:textOn="The text for the button when it is checked."
Эта информация от здесь