LinearLayout ImageView Redimensionner Toutes Les Images Largeurs Pour S'Adapter À

J'ai un linéaire horizontal layout qui contient 3 vues d'images. Chaque image contient la même image qui est de 200x200 pixels. Voici ma mise en page xml:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    tools:context=".MainActivity" >

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true" >

        <ImageView
            android:id="@+id/imageView1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/image200" />

        <ImageView
            android:id="@+id/imageView2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/image200" />

        <ImageView
            android:id="@+id/imageView3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/image200" />

    </LinearLayout>

</RelativeLayout>

Et voici à quoi il ressemble:

LinearLayout ImageView Redimensionner Toutes Les Images Largeurs Pour S'Adapter À

Remarquez comment la troisième image à partir de la gauche est redimensionnée je suppose car il n'y a pas assez de biens immobiliers à contenir 3x 200 pixels de largeur des images.

Ce que je préférerais arriver, c'est plutôt de la réduction de seulement la dernière image, tous les trois images sont redimensionnées de manière régulière de sorte qu'ils correspondent tous à travers l'écran. Comment puis-je configurer mon réseau à régulièrement s'adapter à tous les trois images?

Merci

Mise à JOUR - après avoir changé les paramètres de mon voici de quoi ressembler à:

LinearLayout ImageView Redimensionner Toutes Les Images Largeurs Pour S'Adapter À

Avis que le frontière autour de l'affichage de l'image est toujours de 200 px de haut. Pourquoi est-ce arrivé?

InformationsquelleAutor Jan Tacci | 2013-03-03