老师,我的onDraw方法在运行时不会执行,是什么问题?
@Override
protected void onDraw(Canvas canvas) {
Log.i("TAG", "onDraw");
canvas.drawBitmap(icon, null, iconRect, mPaint);
super.onDraw(canvas);
}
我写到绘制出Icon的这步,但是运行的时候 onDraw不会打印
@Override
protected void onDraw(Canvas canvas) {
Log.i("TAG", "onDraw");
canvas.drawBitmap(icon, null, iconRect, mPaint);
super.onDraw(canvas);
}
我写到绘制出Icon的这步,但是运行的时候 onDraw不会打印
2016-01-05
举报