开发者

inserting picture in android

I a开发者_如何学JAVAm new to android.I want to insert a pictue (which is in c: drive) using image view control. pls give some idea related to it.


this covers that in detail. let us know if you have specific questions.

http://developer.android.com/guide/topics/graphics/2d-graphics.html#drawables-from-images


Displaying an image in an ImageView is quite simple. Check out this family of files from API Demos:

  • ImageView1.java
  • image_view_1.xml

ImageView1.java is quite simple: it just loads the xml layout file. You can change the @drawable/... references in image_view_1.xml to point to your own resources and see the effects you get with different styles of ImageView.

I recommend exploring the API Demos code, as it covers a large portion of the Android framework and will give you an idea about what is possible.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜