BitmapDrawable




/**
* 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;
}
posted @ 2017-08-30 17:52  天长地久-无为  阅读(134)  评论(0编辑  收藏  举报