android 适配dpi框架在代码中设置TextView setTextSize时的使用
我这里用的是阿杜的dpi适配框架,DisplayUtil是常见的单位转换工具类,可自行搜索
TextView .setTextSize()方法传入的是sp值
查看源码
/**
* Set the default text size to the given value, interpreted as "scaled
* pixel" units. This size...
原创
2018-10-19 20:45:11 ·
756 阅读 ·
0 评论