本帖最后由 sevenan 于 2010-11-13 10:19:55 编辑

解决方案 »

  1.   

    抛砖引玉,自己先来一种:     Rect rect = new Rect();
        paint.getTextBounds("abcd", 0, 1, rect);
        Log.v("a:", "height:"+rect.height()+"width:"+rect.width());
      

  2.   

    第二种方法:     //字符宽度获取方法:
        int width=(int)paint.measureText("a", 0, 1);
        Log.v("width:", "width:"+width);
      

  3.   


    可以判断不同 textSize的么?