表示我也是canvas.drawBitmap(mIconBitmap, null, mIconRect, null)这句报空指针
解决方法:
case R.styleable.ChangeColorIconWithText_icon1 :
BitmapDrawable drawable=(BitmapDrawable) a.getDrawable(attr);这下面加上mIconBitmap = drawable.getBitmap();
解决方法:
case R.styleable.ChangeColorIconWithText_icon1 :
BitmapDrawable drawable=(BitmapDrawable) a.getDrawable(attr);这下面加上mIconBitmap = drawable.getBitmap();
2015-07-15