ImageView in Android Example

Every Application need awesome UI, we have learn some component. Now to show image in UI we can use Imageview in Android.

ImageView is beautiful component to display image in UI. ImageView provide some extra options to mange image like ScalType, Backgroung, setAlpha etc. We learn about ImageView today.

Let’s see simple example. First create new project and put images in drawable-hdpi folder(if not created then create first. Right click on res->New->Directory name as drawable-hdpi).

activity_main.xml

MainActivity.java

Now run project. Our output looks like below.

android-imageview-example-output-skynils

Download Project.

downlod

(Visited 471 times, 1 visits today)