今天写代码的时候,突然来了兴致,TextView如果不指定textSize,那它的默认字体大小会是多少。
查看TextView源码:
1 |
int textColorHighlight = 0; |
答案是15,我们可以清晰的看到源码中的textSize为15,单位是sp。
今天写代码的时候,突然来了兴致,TextView如果不指定textSize,那它的默认字体大小会是多少。
查看TextView源码:
1 |
int textColorHighlight = 0; |
答案是15,我们可以清晰的看到源码中的textSize为15,单位是sp。
近期评论