开发者

Android: .png to Imageview? Most efficent way?

开发者 https://www.devze.com 2023-03-07 02:31 出处:网络
I\'ve got a .png file in my D开发者_如何学编程rawable folder. How do I make it into an Imageview?imageView.setImageResource(R.drawable.your_drawable);

I've got a .png file in my D开发者_如何学编程rawable folder. How do I make it into an Imageview?


imageView.setImageResource(R.drawable.your_drawable);


<ImageView
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:src="@drawable/my_image"
/>
0

精彩评论

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