Android ImageView ScaleType Example

Android ImageView ScaleType is to used set options for scaling the bounds of an image to the bounds of this view.
ImageView ScaleType is used when we get image from online and show it to user in proper size using scaleType fit_XY or some other type.

Default View:

Android Set Image as Wallpaper

Going to see about how to set a image as wallpaper in 2 line of code in android.

Android Gallery, ImageView Example

Already we saw the simple Gallery example on our previous post Simple Gallery Example
Now we are going to see a simple gallery example of how to use gallery look like a photo album as like in our phone. That is, when we click the item in gallery, the corresponding image will display below in full size using imageview.

Create a attrs.xml file in res/values folder. This file is used to declare the style. ( Code in previous post - simple gallery example).

Syndicate content