Android: imageView rembourrage

J'essaye d'ajouter une photo par imageView. Mais je veux remplir pleinement mon point de vue avec l'image et aussi le imageView doit remplir la largeur de l'écran. l'image doit commencer et finir au bord de l'écran.

J'ai utilisé tous les attributs xml mais pas de chance. C'est le plus proche de code pour ce que je veux.

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bck3"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >

<Button
    android:id="@+id/buttonStore"
    android:layout_width="50dp"
    android:layout_height="50dp"
    android:layout_alignBottom="@+id/imageView1"
    android:layout_alignParentRight="true"
    android:layout_marginRight="10dp"
    android:background="@drawable/store" />

<ImageView
    android:id="@+id/imageView1"
    android:layout_width="100dp"
    android:layout_height="40dp"
    android:layout_alignParentLeft="true"
    android:layout_alignParentTop="true"
    android:src="@drawable/logo" />

<ImageView
    android:id="@+id/imageView2"
    android:layout_width="fill_parent"
    android:layout_height="125dp"
    android:layout_marginTop="57dp"
    android:adjustViewBounds="true"
    android:scaleType="centerCrop"
    android:src="@drawable/ronaldo" />

Android: imageView rembourrage

Il se doit cette
Android: imageView rembourrage

Qu'est-ce que votre conteneur de mise en page? Existe-il des marges de rembourrage et il défini? Nous avons besoin de voir plus de votre XML à l'aide.
N'hésitez pas à poster votre code xml entièrement. Afin que nous puissions vous aider avec elle.
J'ai ajouté plein de code xml. note: j'ai supprimé la barre d'action dans le Manifeste.

OriginalL'auteur Arda Oğul Üçpınar | 2013-08-22