有如下代码:
TextView text=new TextView(context);
text.setText(showText);
Canvas canvas=new Canvas();
Paint paint=new Paint();
canvas.drawText("asfa", 10, 10, paint);
text.draw(canvas);
但是文字并没有绘制到TextView上面,这是怎么回事?
参考:
http://lib.csdn.net/article/android/43282
http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2012/1212/703.html