Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.home);
BitmapDrawable bd = new BitmapDrawable(bitmap);
bd.setTileModeXY(TileMode.CLAMP , TileMode.CLAMP );
bd.setDither(true);
imageView.setBackgroundDrawable(bd);
android设置一个图片为全屏大小
最新推荐文章于 2021-05-29 14:32:04 发布