老师,我在绘制盘块背景的时候,模拟器上面不能显示背景
/**
* 设置背景图
*/
private Bitmap mBgBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.bg);
/**
*绘制背景
*/
private void drawBg() {
mCanvas.drawColor(0xffffffff);
mCanvas.drawBitmap(mBgBitmap,null,new RectF(mPadding/2,mPadding/2,getMeasuredWidth()-mPadding/2,getMeasuredHeight()-mPadding/2),null);
}