Android 将imageview提取到按钮和编辑文本之间的relativelayout中的所有屏幕

Android 将imageview提取到按钮和编辑文本之间的relativelayout中的所有屏幕,android,Android,我有下面的XML relativelayout。。。我需要帮助,使图像始终获取到所有屏幕,但在上面的名称和下面的按钮之间 以下ImageView参数使图像居中 <?xml version="1.0" encoding="utf-8"?> < RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"

我有下面的XML relativelayout。。。我需要帮助,使图像始终获取到所有屏幕,但在上面的名称和下面的按钮之间

以下ImageView参数使图像居中

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

   <TextView android:id="@+id/nameview"
       android:layout_width="fill_parent"
       android:layout_height="wrap_content"
       android:background="#FFFFE0"
       android:paddingBottom="10dp"
       android:paddingTop="14dp"
       android:paddingLeft="45dp"
       android:fontFamily="Arial"
       android:textSize="18sp"
       android:textStyle="bold"
       android:text="Ju" />


 <ImageView android:id="@+id/SingleView" 
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:layout_below="@id/nameview"/>

 <Button
        android:id="@+id/funnyBtn"
        android:layout_width="35dp"
        android:layout_height="35dp"
        android:layout_marginTop="10dp"
        android:layout_below="@+id/SingleView"
        android:layout_alignParentLeft="true"
        android:src="@drawable/smileclk"
        android:background="@drawable/smileclk"
        android:layout_marginLeft="25dp"
        android:text="" />

       <Button
        android:id="@+id/test1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/SingleView"
        android:layout_toRightOf="@+id/funnyBtn"
        android:layout_marginLeft="15dp"
        android:text="test1" />

         <Button
        android:id="@+id/test2Btn"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/SingleView"
        android:layout_toRightOf="@+id/comment"
        android:layout_alignParentRight="true"
        android:layout_marginRight="15dp"
        android:layout_marginLeft="15dp"
        android:text="test2" />

   <ScrollView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_weight="1"
    android:layout_marginTop="20dp"
    android:layout_below="@+id/test2Btn"
    android:background="#ff00ff00" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:paddingBottom="10dp"
        android:paddingTop="20dp"
        android:padding="10dip" >
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Calculation" />
                <View 
           android:layout_width="fill_parent"
           android:layout_height="1dp"       
          android:background="#ffffff" />


            </LinearLayout>

   </ScrollView>


  </RelativeLayout>


这是我目前的结果

这是我的愿望输出


正如murtaza提到的添加
android:scaleType=“fitXY”
帮助

  <ImageView android:id="@+id/SingleView" 
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:scaleType="fitXY"
     android:layout_below="@id/nameview"/>


您不清楚。你能告诉我们预期的输出是什么吗?@MurtazaKhursheedHussain在我发布的图片中,我希望河流/树木图片出现在所有屏幕上,现在它的外观居中。。我不喜欢灰色的一面。。我想把所有的照片都显示在屏幕上。。现在找到我了吗?把这个放到你的ImageView
android:scaleType=“fitXY”