开发者

Android: .png to Imageview? Most efficent way?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜