Android:TextView height doesn't change after shrinking the font size

后端 未结 7 1238
长情又很酷
长情又很酷 2020-12-03 14:19

When I click on the button, the font size shrinks to 12. However, the result is :

\"enter

7条回答
  •  醉酒成梦
    2020-12-03 15:05

    Instead of using:

    final String DOUBLE_BYTE_SPACE = "\u3000";
    text.setText(text + DOUBLE_BYTE_SPACE);
    

    Better use:

    final String DOUBLE_BYTE_WORDJOINER = "\u2060";
    text.setText(text + DOUBLE_BYTE_WORDJOINER);
    

    Extra information: Word Joiner is 0 width space.

提交回复
热议问题