проблемы при размещении scrollview в xml

Как включить scrollview в мой XML-файл ниже..где бы я ни разместил scrollview дисплей получает беспорядок..
поэтому перед включением scrollview это мой xml-файл..

<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout 
    
    
    android_id="@+id/drawer_layout"
    android_layout_width="match_parent"
    android_layout_height="match_parent">

<RelativeLayout
    android_orientation="vertical" android_layout_width="match_parent"
    android_layout_height="match_parent"
    android_id="@+id/layout">
    <include
        android_id="@+id/toolbar"
        layout="@layout/toolbar" />



    <ImageView
        android_layout_width="70dp"
        android_layout_height="70dp"
        android_src="@drawable/prop"
        android_scaleType="fitCenter"
        android_layout_marginLeft="20dp"
        android_layout_marginTop="70dp"
        android_id="@+id/imageView10" />
    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Name"
        android_id="@+id/txte1"
        android:textSize = "20dp"
        android:textStyle = "bold"
        android:textColor = "#757575"
        android_layout_below="@+id/imageView10"
        android_layout_alignLeft="@+id/imageView10"
        android_layout_alignStart="@+id/imageView10" />


    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Vault"
        android:textColor = "#757575"
        android:textSize = "15dp"
        android:textStyle = "bold"
        android_id="@+id/txte2"
        android_layout_centerVertical="true"
        android_layout_alignLeft="@+id/imageView10"
        android_layout_alignStart="@+id/imageView10" />


   <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Mobile"
        android_id="@+id/txte3"
       android:textStyle = "bold"
       android_layout_above="@+id/textView21"
       android_layout_toRightOf="@+id/textView19"
       android_layout_toEndOf="@+id/textView19" />

    <TextView
       android_layout_width="wrap_content"
       android_layout_height="wrap_content"
       android_text="Email"
       android:textColor = "#757575"
       android:textSize = "15dp"
       android:textStyle = "bold"
       android_id="@+id/txte4"
        android_layout_below="@+id/textView20"
        android_layout_alignLeft="@+id/textView20"
        android_layout_alignStart="@+id/textView20"
        android_layout_marginTop="30dp" />


  <TextView
       android_layout_width="wrap_content"
       android_layout_height="wrap_content"
       android_text="Pob"
      android_textStyle="bold"
       android_id="@+id/txte5"
       android_layout_marginTop="20dp"
      android_layout_below="@+id/textView22"
      android_layout_alignLeft="@+id/textView22"
      android_layout_alignStart="@+id/textView22" />

   <TextView
       android_layout_width="wrap_content"
       android_layout_height="wrap_content"
       android_text="Pin"
       android:textColor = "#757575"
       android:textSize = "15dp"
       android:textStyle = "bold"
       android_id="@+id/txte6"
       android_layout_marginTop="20dp"
       android_layout_below="@+id/textView23"
       android_layout_alignLeft="@+id/textView23"
       android_layout_alignStart="@+id/textView23" />

    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Dob"
        android_id="@+id/txte7"
       android:textStyle = "bold"
        android_layout_alignTop="@+id/txte6"
        android_layout_toRightOf="@+id/textView19"
        android_layout_toEndOf="@+id/textView19"
        />
    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Doc"
        android_id="@+id/txte8"
         />



    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Hello"
        android_textSize="25dp"
        android_textStyle="bold"
        android_id="@+id/textView19"
        android_layout_alignTop="@+id/imageView10"
        android_layout_centerHorizontal="true" />

    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Vault Number"
        android_id="@+id/textView20"
        android_layout_below="@+id/txte2"
        android_layout_alignLeft="@+id/txte2"
        android_layout_alignStart="@+id/txte2" />

    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Mobile Number"
        android_id="@+id/textView21"
        android_layout_alignTop="@+id/textView20"
        android_layout_alignLeft="@+id/txte3"
        android_layout_alignStart="@+id/txte3" />

    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="E-mail"
        android_id="@+id/textView22"
        android_layout_below="@+id/txte4"
        android_layout_alignLeft="@+id/txte4"
        android_layout_alignStart="@+id/txte4" />

   <TextView
       android_layout_width="wrap_content"
       android_layout_height="wrap_content"
       android_text="Place of Birth"
       android_id="@+id/textView23"
       android_layout_below="@+id/txte5"
       android_layout_alignLeft="@+id/txte5"
       android_layout_alignStart="@+id/txte5" />

    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Postal-pin"
        android_id="@+id/textView24"
        android_layout_below="@+id/txte6"

        android_layout_alignLeft="@+id/txte6"
        android_layout_alignStart="@+id/txte6" />

     <TextView
         android_layout_width="wrap_content"
         android_layout_height="wrap_content"
         android_text="Date of Birth"
         android_id="@+id/textView25"
         android_layout_below="@+id/txte7"
         android_layout_alignLeft="@+id/txte7"
         android_layout_alignStart="@+id/txte7" />

    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Education"
        android_id="@+id/textView200"
        android_layout_marginTop="30dp"
        android_layout_below="@+id/textView24"
        android_layout_alignLeft="@+id/textView24"
        android_layout_alignStart="@+id/textView24"
        />

    <FrameLayout
        android_id="@+id/container_body"
        android_layout_width="fill_parent"
        android_layout_height="wrap_content">

    </FrameLayout>

</RelativeLayout>



    <fragment
        android_id="@+id/fragment_navigation_drawer"
        android_name="com.example.miisky.FragmentDrawer"
        android_layout_width="@dimen/nav_drawer_width"
        android_layout_height="match_parent"
        android_layout_gravity="start"
        app_layout="@layout/fragment_navigation_drawer"
        tools_layout="@layout/fragment_navigation_drawer" />



    </android.support.v4.widget.DrawerLayout>

вот как это будет выглядеть.Введите описание изображения здесь

пожалуйста, кто-нибудь может предложить, где включить scrollview для выше xml.

Редактировать
если я размещаю scrollview, как показано ниже..тексты перекрываются..

<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout 
    
    
    android_id="@+id/drawer_layout"
    android_layout_width="match_parent"
    android_layout_height="match_parent">

    <ScrollView
        android_id="@+id/scroll"
        android_layout_width="fill_parent"
        android_layout_height="fill_parent"
         >


<RelativeLayout
    android_orientation="vertical" android_layout_width="fill_parent"
    android_layout_height="fill_parent"
    android_id="@+id/layout">
    <include
        android_id="@+id/toolbar"
        layout="@layout/toolbar" />



    <ImageView
        android_layout_width="70dp"
        android_layout_height="70dp"
        android_src="@drawable/prop"
        android_scaleType="fitCenter"
        android_layout_marginLeft="20dp"
        android_layout_marginTop="70dp"
        android_id="@+id/imageView10" />
    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Name"
        android_id="@+id/txte1"
        android:textSize = "20dp"
        android:textStyle = "bold"
        android:textColor = "#757575"
        android_layout_below="@+id/imageView10"
        android_layout_alignLeft="@+id/imageView10"
        android_layout_alignStart="@+id/imageView10" />


    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Vault"
        android:textColor = "#757575"
        android:textSize = "15dp"
        android:textStyle = "bold"
        android_id="@+id/txte2"
        android_layout_centerVertical="true"
        android_layout_alignLeft="@+id/imageView10"
        android_layout_alignStart="@+id/imageView10" />


   <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Mobile"
        android_id="@+id/txte3"
       android:textStyle = "bold"
       android_layout_above="@+id/textView21"
       android_layout_toRightOf="@+id/textView19"
       android_layout_toEndOf="@+id/textView19" />

    <TextView
       android_layout_width="wrap_content"
       android_layout_height="wrap_content"
       android_text="Email"
       android:textColor = "#757575"
       android:textSize = "15dp"
       android:textStyle = "bold"
       android_id="@+id/txte4"
        android_layout_below="@+id/textView20"
        android_layout_alignLeft="@+id/textView20"
        android_layout_alignStart="@+id/textView20"
        android_layout_marginTop="30dp" />


  <TextView
       android_layout_width="wrap_content"
       android_layout_height="wrap_content"
       android_text="Pob"
      android_textStyle="bold"
       android_id="@+id/txte5"
       android_layout_marginTop="20dp"
      android_layout_below="@+id/textView22"
      android_layout_alignLeft="@+id/textView22"
      android_layout_alignStart="@+id/textView22" />

   <TextView
       android_layout_width="wrap_content"
       android_layout_height="wrap_content"
       android_text="Pin"
       android:textColor = "#757575"
       android:textSize = "15dp"
       android:textStyle = "bold"
       android_id="@+id/txte6"
       android_layout_marginTop="20dp"
       android_layout_below="@+id/textView23"
       android_layout_alignLeft="@+id/textView23"
       android_layout_alignStart="@+id/textView23" />

    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Dob"
        android_id="@+id/txte7"
       android:textStyle = "bold"
        android_layout_alignTop="@+id/txte6"
        android_layout_toRightOf="@+id/textView19"
        android_layout_toEndOf="@+id/textView19"
        />
    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Doc"
        android_id="@+id/txte8"
         />



    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Hello"
        android_textSize="25dp"
        android_textStyle="bold"
        android_id="@+id/textView19"
        android_layout_alignTop="@+id/imageView10"
        android_layout_centerHorizontal="true" />

    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Vault Number"
        android_id="@+id/textView20"
        android_layout_below="@+id/txte2"
        android_layout_alignLeft="@+id/txte2"
        android_layout_alignStart="@+id/txte2" />

    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Mobile Number"
        android_id="@+id/textView21"
        android_layout_alignTop="@+id/textView20"
        android_layout_alignLeft="@+id/txte3"
        android_layout_alignStart="@+id/txte3" />

    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="E-mail"
        android_id="@+id/textView22"
        android_layout_below="@+id/txte4"
        android_layout_alignLeft="@+id/txte4"
        android_layout_alignStart="@+id/txte4" />

   <TextView
       android_layout_width="wrap_content"
       android_layout_height="wrap_content"
       android_text="Place of Birth"
       android_id="@+id/textView23"
       android_layout_below="@+id/txte5"
       android_layout_alignLeft="@+id/txte5"
       android_layout_alignStart="@+id/txte5" />

    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Postal-pin"
        android_id="@+id/textView24"
        android_layout_below="@+id/txte6"

        android_layout_alignLeft="@+id/txte6"
        android_layout_alignStart="@+id/txte6" />

     <TextView
         android_layout_width="wrap_content"
         android_layout_height="wrap_content"
         android_text="Date of Birth"
         android_id="@+id/textView25"
         android_layout_below="@+id/txte7"
         android_layout_alignLeft="@+id/txte7"
         android_layout_alignStart="@+id/txte7" />

    <TextView
        android_layout_width="wrap_content"
        android_layout_height="wrap_content"
        android_text="Education"
        android_id="@+id/textView200"
        android_layout_marginTop="30dp"
        android_layout_below="@+id/textView24"
        android_layout_alignLeft="@+id/textView24"
        android_layout_alignStart="@+id/textView24"
        />

    <FrameLayout
        android_id="@+id/container_body"
        android_layout_width="fill_parent"
        android_layout_height="wrap_content">

    </FrameLayout>

</RelativeLayout>
</ScrollView>


    <fragment
        android_id="@+id/fragment_navigation_drawer"
        android_name="com.example.miisky.FragmentDrawer"
        android_layout_width="@dimen/nav_drawer_width"
        android_layout_height="match_parent"
        android_layout_gravity="start"
        app_layout="@layout/fragment_navigation_drawer"
        tools_layout="@layout/fragment_navigation_drawer" />



    </android.support.v4.widget.DrawerLayout>

вот дисплейВведите описание изображения здесь

3 ответа

  1. Просто добавьте android:fillViewport="true"в него.

    Обратитесь сюда.

     <ScrollView
            android_id="@+id/scroll"
            android_layout_width="fill_parent"
            android_layout_height="fill_parent"
            android_scrollbars="vertical"
            android_fillViewport="true">
    
  2. я сохранил изображение и тексты(имя и привет) статический и прикладной scrollview, как это..

    <?xml version="1.0" encoding="utf-8"?>
    <android.support.v4.widget.DrawerLayout 
        
        
        android_id="@+id/drawer_layout"
        android_layout_width="match_parent"
        android_layout_height="match_parent">
    
    
            <RelativeLayout
                android_orientation="vertical" android_layout_width="fill_parent"
                android_layout_height="fill_parent"
                android_id="@+id/layout">
                <include
                    android_id="@+id/toolbar"
                    layout="@layout/toolbar" />
    
    
                <ImageView
                    android_layout_width="70dp"
                    android_layout_height="70dp"
                    android_src="@drawable/prop"
                    android_scaleType="fitCenter"
                    android_layout_marginLeft="20dp"
                    android_layout_marginTop="70dp"
                    android_id="@+id/imageView10" />
    
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="Hello"
                    android_textSize="25dp"
                    android_textStyle="bold"
                    android_id="@+id/textView19"
                    android_layout_alignTop="@+id/imageView10"
                    android_layout_centerHorizontal="true" />
    
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="Name"
                    android_id="@+id/txte1"
                    android:textSize = "20dp"
                    android:textStyle = "bold"
                    android:textColor = "#757575"
                    android_layout_marginTop="8dp"
                    android_layout_below="@+id/imageView10"
                    android_layout_alignLeft="@+id/imageView10"
                    android_layout_alignStart="@+id/imageView10" />
    
        <ScrollView
            android_id="@+id/scroll"
            android_layout_width="fill_parent"
            android_layout_height="fill_parent"
            android_layout_below="@+id/txte1"
            android_scrollbars="vertical"
            android_fillViewport="true">
    
    
            <RelativeLayout
                android_orientation="vertical" android_layout_width="fill_parent"
                android_layout_height="fill_parent"
                android_layout_marginTop="10dp"
                android_paddingLeft="20dp"
                android_id="@+id/layout1">
    
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="Vault"
                    android:textColor = "#757575"
                    android:textSize = "15dp"
                    android:textStyle = "bold"
                    android_id="@+id/txte2"
                    android_layout_below="@+id/container_body"
                    android_layout_alignParentLeft="true"
                    android_layout_alignParentStart="true" />
    
    
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="Mobile"
                    android_id="@+id/txte3"
                    android:textStyle = "bold"
    
                    android_layout_centerHorizontal="true" />
    
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="Email"
                    android:textColor = "#757575"
                    android:textSize = "15dp"
                    android:textStyle = "bold"
                    android_id="@+id/txte4"
                    android_layout_below="@+id/textView20"
                    android_layout_alignLeft="@+id/textView20"
                    android_layout_alignStart="@+id/textView20"
                    android_layout_marginTop="30dp" />
    
    
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="Pob"
                    android_textStyle="bold"
                    android_id="@+id/txte5"
                    android_layout_marginTop="20dp"
                    android_layout_below="@+id/textView22"
                    android_layout_alignLeft="@+id/textView22"
                    android_layout_alignStart="@+id/textView22" />
    
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="Pin"
                    android:textColor = "#757575"
                    android:textSize = "15dp"
                    android:textStyle = "bold"
                    android_id="@+id/txte6"
                    android_layout_marginTop="20dp"
                    android_layout_below="@+id/textView23"
                    android_layout_alignLeft="@+id/textView23"
                    android_layout_alignStart="@+id/textView23" />
    
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="Dob"
                    android_id="@+id/txte7"
                    android:textStyle = "bold"
                    android_layout_alignTop="@+id/txte6"
                    android_layout_alignLeft="@+id/textView21"
                    android_layout_alignStart="@+id/textView21" />
    
    
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="Vault Number"
                    android_id="@+id/textView20"
                    android_layout_below="@+id/txte2"
                    android_layout_alignLeft="@+id/txte2"
                    android_layout_alignStart="@+id/txte2" />
    
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="Mobile Number"
                    android_id="@+id/textView21"
                    android_layout_alignTop="@+id/textView20"
                    android_layout_alignLeft="@+id/txte3"
                    android_layout_alignStart="@+id/txte3" />
    
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="E-mail"
                    android_id="@+id/textView22"
                    android_layout_below="@+id/txte4"
                    android_layout_alignLeft="@+id/txte4"
                    android_layout_alignStart="@+id/txte4" />
    
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="Place of Birth"
                    android_id="@+id/textView23"
                    android_layout_below="@+id/txte5"
                    android_layout_alignLeft="@+id/txte5"
                    android_layout_alignStart="@+id/txte5" />
    
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="Postal-pin"
                    android_id="@+id/textView24"
                    android_layout_below="@+id/txte6"
    
                    android_layout_alignLeft="@+id/txte6"
                    android_layout_alignStart="@+id/txte6" />
    
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="Date of Birth"
                    android_id="@+id/textView25"
                    android_layout_below="@+id/txte7"
                    android_layout_alignLeft="@+id/txte7"
                    android_layout_alignStart="@+id/txte7" />
    
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="Education"
                    android_id="@+id/textView200"
                    android_layout_marginTop="30dp"
                    android_layout_below="@+id/textView24"
                    android_layout_alignLeft="@+id/textView24"
                    android_layout_alignStart="@+id/textView24"
                    />
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="Education1"
                    android_id="@+id/textView00"
                    android_layout_marginTop="30dp"
                    android_layout_below="@+id/textView200"
                    android_layout_alignLeft="@+id/textView200"
                    android_layout_alignStart="@+id/textView200"
                    />
    
    
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="Education1"
                    android_id="@+id/textView010"
                    android_layout_marginTop="20dp"
                    android_layout_marginBottom="10dp"
                    android_layout_below="@+id/textView00"
                    android_layout_alignLeft="@+id/textView00"
                    android_layout_alignStart="@+id/textView00"
                    />
    
                <FrameLayout
                    android_id="@+id/container_body"
                    android_layout_width="fill_parent"
                    android_layout_height="wrap_content">
    
                </FrameLayout>
    
                </RelativeLayout>
                </ScrollView>
    
                <TextView
                    android_layout_width="wrap_content"
                    android_layout_height="wrap_content"
                    android_text="Doc"
                    android_id="@+id/txte8"
                    android_layout_alignParentTop="true"
                    android_layout_toLeftOf="@+id/txte1"
                    android_layout_toStartOf="@+id/txte1" />
            </RelativeLayout>
    
    
    
        <fragment
            android_id="@+id/fragment_navigation_drawer"
            android_name="com.example.miisky.FragmentDrawer"
            android_layout_width="@dimen/nav_drawer_width"
            android_layout_height="match_parent"
            android_layout_gravity="start"
            app_layout="@layout/fragment_navigation_drawer"
            tools_layout="@layout/fragment_navigation_drawer" />
    
    
    
    </android.support.v4.widget.DrawerLayout>