Judul : How to use, Initialize and set Bitmap in ImageView in an Android App
link : How to use, Initialize and set Bitmap in ImageView in an Android App
How to use, Initialize and set Bitmap in ImageView in an Android App
In your activity in which you want to use the Bitmap image use the below code....
Bitmap bmp;
// R.raw.gball is the resource id of the image in the res => raw(folder) => gball.png
bmp = BitmapFactory.decodeResource ( getResources(), R.raw.gball);
If you want to set this bitmap in ImageView...
mImageView.setImageBitmap ( bmp );
Demikianlah Artikel How to use, Initialize and set Bitmap in ImageView in an Android App
Sekianlah artikel How to use, Initialize and set Bitmap in ImageView in an Android App kali ini, mudah-mudahan bisa memberi manfaat untuk anda semua. baiklah, sampai jumpa di postingan artikel lainnya.
Anda sekarang membaca artikel How to use, Initialize and set Bitmap in ImageView in an Android App dengan alamat link https://kokonghod.blogspot.com/2016/03/how-to-use-initialize-and-set-bitmap-in.html
0 Response to "How to use, Initialize and set Bitmap in ImageView in an Android App"
Post a Comment