public class CharacterWrapTextView extends TextView {
public CharacterWrapTextView(Context context) {
super(context);
}
public CharacterWrapTextView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public CharacterWrapTextView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
@Override public void setText(CharSequence text, BufferType type) {
super.setText(text.toString().replace(" ", "\u00A0"), type);
}
}
<com.my.CharacterWrapTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="text"/>

(fondo amarillo: Vista de Texto normal)
Hola, cristiano, estoy buscando la solución exacta, pero no puedo implementar con tu respuesta aceptada. Por favor, hágamelo saber cómo hacer esto en una vista de texto – praveenb