当前位置: 代码迷 >> Android >> android自定义view,ondraw画字体如何确定文字大小
  详细解决方案

android自定义view,ondraw画字体如何确定文字大小

热度:69   发布时间:2016-04-28 01:06:00.0
android自定义view,ondraw画字体怎么确定文字大小?
继承View的时,自己画文字。canvas.drawText(.......)
------解决思路----------------------
 paint The paint used for the text (e.g. color, size, style)   

 public void drawText(char[] text, int index, int count, float x, float y, Paint paint)


Paint参数来实现
  相关解决方案