开发者

How to get the width of the Tab character in Android?

开发者 https://www.devze.com 2023-03-27 02:47 出处:网络
float width = mTextPaint.measureText(\"\\t\"); //width = 10.666667 I found android.text.Layout defined tab width should be 20, how I should get the开发者_运维技巧 real width of the tab?
float width = mTextPaint.measureText("\t"); //width = 10.666667

I found android.text.Layout defined tab width should be 20, how I should get the开发者_运维技巧 real width of the tab?

0

精彩评论

暂无评论...
验证码 换一张
取 消