/**
* get Font height
*/
public static int getFontHeight(TextView view) {
Paint paint = new Paint();
paint.setTextSize(view.getTextSize());
FontMetrics fm = paint.getFontMetrics();
return (int) (Math.ceil(fm.descent - fm.ascent));
}
ViewUtils.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:Lunei
作者:
评论列表
文章目录