开发者

Android: How to temporarily present a programaticly created bitmap for debug?

开发者 https://www.devze.com 2023-03-25 13:18 出处:网络
I\'m Creating a bitmap programmaticly. How can i see them for debug purpose before I use them further?

I'm Creating a bitmap programmaticly. How can i see them for debug purpose before I use them further? I was thinking something like a dialogBox or an AlertDialog, but how c开发者_如何学Pythonan i make them to show a bitmap?

Thank You


You can create an ImageView and set a bitmap to be the content.

ImageView#setImageBitmap(Bitmap)

This whole thing should be able to be put into an AlertDialog if you would like.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号