[Java for Android App Development] :
You can use the ImageView to display images in your Application.There are many different configuration options and many screens from different devices that you should take into account. I write a little guide using my viewer app.

EXAMPLE:

First to use imageview you have to add resources, in Eclipse navigate to res/values/strings.xml.

Edit the strings.xml

This is the content of string.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>

<string name="app_name">ViewPagerTest</string>
<string name="action_settings">Settings</string>
<string name="hello_world">Hello world!</string>

</resources>

Add the following string:

[COLOR="Blue"]<string name="content">image</string>[/COLOR]

Like this:

<?xml version="1.0" encoding="utf-8"?>
<resources>

<string name="app_name">ViewPagerTest</string>
<string name="action_settings">Settings</string>
<string name="hello_world">Hello world!</string>
[COLOR="blue"]<string name="content">image</string>[/COLOR]

</resources>

Now you have to add a picture in the appropriate project folder, as you would have noticed there are 5 folders that contain the image resources of the project :

res/drawable-hdpi

res/drawable-ldpi

res/drawable-mdpi

res/drawable-xhdpi

res/drawable-xxhdpi

You can copy the images you want to put in you’re application in any one of these folders. Android SDK will automatically recognize any images you put on any one of these folders as drawable resources. Refer to official Android’s Drawable Resource and Screen Support to understand of how image works in Android.

Inside these folder there are default project .pngs. Now i use them to show you on how to add pict. The pictures are named ic_launcher.png

Now open layout1.xml

This is the blank layout:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

</LinearLayout>

and add the following code:

[COLOR="Blue"]<ImageView
android:id="@+id/image"
android:contentDescription="@string/content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_launcher" />[/COLOR]

Like this:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

[COLOR="blue"]<ImageView
android:id="@+id/image"
android:contentDescription="@string/content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_launcher" />[/COLOR]

</LinearLayout>

Now you may open the Graphical layout editor to preview your UI:

--------------------------------------------------------------------------------------------------------------

1) Resources: string.xml, <string name="content">image</string>

2) Your_image

3) Use imageview to image to your layout:

<ImageView

android:id="@+id/image"

android:contentDescription="@string/content"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:src="@drawable/Your_image" />[/COLOR]