修改器下載 androidstudio中怎么改drawble中圖片的大?。?/h1>
androidstudio中怎么改drawble中圖片的大???使用位圖重新繪制位圖BTM1=BitmapFactory.decodeResource文件( Main.this.getResources
androidstudio中怎么改drawble中圖片的大?。?/h2>
使用位圖重新繪制位圖BTM1=BitmapFactory.decodeResource文件( Main.this.getResources(),右??衫L制.hh)BitmapDrawablebd1=位可繪制(btm1)imageView.setBackgroundDrawable可設(shè)置(BD1)//單擊bitmapbtm2=位圖.createScaledBitmap(btm1,40,50,false)//自定義bitmapdrawablebd2=bitmapdrawable(btm2)圖像視圖。setbackgrounddrawable(BD2)
android頭像修改后別的ui頭像怎么更新?
首頁碎片
//必須是靜態(tài)全局變量
public static Boolean isuichange=false//判斷頭像是否已更改
public static bitmap Mimagebitmp=null//頭像位圖
=============== = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = == picdata.getExtras文件()
如果(額外的!=null){
位圖照片=額外的getParcelable(“data”)
Drawable Drawable=新的位圖繪制(照片)
//mhaedimage.setbackgrounddrawing可設(shè)置(可繪制)
mimagebitmp=照片mhaedimage.setBitmap文件(照片)mhadeimage.setbackground公司(照片)
isuichange=true
}
}