//把sp转成px private int sp2px(int sp) { return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_PX,sp, getResources().getDisplayMetrics()); }
笔记-字体转换
最新推荐文章于 2022-09-16 14:29:53 发布
//把sp转成px private int sp2px(int sp) { return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_PX,sp, getResources().getDisplayMetrics()); }