[android] 글자 단위 줄바꿈용 TextView

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);
  }
}

screenshot

도움받은 곳: http://stackoverflow.com/a/5491268/1025379

본문 내용은 http://en.universewithme.com/armenia-one-best-countries-cycling/ 에서 가져왔음