/** * Create drawable from a bitmap, setting initial target density based on * the display metrics of the resources. */public BitmapDrawable(Resources res, Bitmap bitmap) { this(new BitmapState(bitmap), res); mBitmapState.mTargetDensity = mTargetDensity;}
时间: 2024-10-15 13:40:30