修改器下载 androidstudio中怎么改drawble中图片的大小?

androidstudio中怎么改drawble中图片的大小?使用位图重新绘制位图BTM1=BitmapFactory.decodeResource文件( Main.this.getResources

androidstudio中怎么改drawble中图片的大小?

使用位图重新绘制位图BTM1=BitmapFactory.decodeResource文件( Main.this.getResources(),右。可绘制.hh)BitmapDrawablebd1=位可绘制(btm1)imageView.setBackgroundDrawable可设置(BD1)//单击bitmapbtm2=位图.createScaledBitmap(btm1,40,50,false)//自定义bitmapdrawablebd2=bitmapdrawable(btm2)图像视图。setbackgrounddrawable(BD2)

android头像修改后别的ui头像怎么更新?

首页碎片

//必须是静态全局变量

public static Boolean isuichange=false//判断头像是否已更改

public static bitmap Mimagebitmp=null//头像位图

=============== = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = == picdata.getExtras文件()

如果(额外的!=null){

位图照片=额外的getParcelable(“data”)

Drawable Drawable=新的位图绘制(照片)

//mhaedimage.setbackgrounddrawing可设置(可绘制)

mimagebitmp=照片mhaedimage.setBitmap文件(照片)mhadeimage.setbackground公司(照片)

isuichange=true

}

}