DisplayMetrics metrics = new DisplayMetrics();
this.getWindowManager().getDefaultDisplay().getMetrics(metrics);
Resources r = new Resources(this.getAssets(), metrics, null);
Drawable bgDrawble2 = new BitmapDrawable(r, bgBitmap);
android 把bitmap转成drawble后宽高不一致的解决方法
最新推荐文章于 2021-05-28 20:04:35 发布