android - ScrollView Still comes Behind out of it's Area -


this xml. .

<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"     tools:context="com.xxx.xxx.myactivity" >      <linearlayout         android:id="@+id/viewfromdatetodate"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_alignparenttop="true"         android:layout_gravity="center"         android:layout_marginbottom="10dp"         android:layout_margintop="10dp"         android:gravity="center"         android:orientation="horizontal" >          <edittext             android:id="@+id/txtfromdate"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:drawableright="@drawable/timesheet_icon"             android:editable="false"             android:focusableintouchmode="false"             android:hint="@string/txtfromdate"             android:inputtype="date"             android:onclick="selectdate"             android:textsize="@dimen/generaltextsize" />          <textview             android:id="@+id/textview1"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_marginleft="15dp"             android:layout_marginright="15dp"             android:text="@string/lblfromto"             android:textappearance="?android:attr/textappearancemedium"             android:textsize="@dimen/generaltextsize" />          <edittext             android:id="@+id/txttodate"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:drawableright="@drawable/timesheet_icon"             android:editable="false"             android:focusableintouchmode="false"             android:hint="@string/txttodate"             android:inputtype="date"             android:onclick="selectdate"             android:textsize="@dimen/generaltextsize" />          <button             android:layout_width="100dp"             android:layout_height="wrap_content"             android:layout_marginleft="15dp"             android:background="@drawable/green_button_department"             android:text="@string/btnshowdata"             android:textcolor="@color/white" />     </linearlayout>      <view         android:id="@+id/upperseparator"         android:layout_width="fill_parent"         android:layout_height="1dp"         android:layout_below="@id/viewfromdatetodate"         android:layout_margintop="15dp"         android:background="@android:color/darker_gray" />      <linearlayout         android:id="@+id/viewtimeoffdetailsheader"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_below="@id/upperseparator"         android:orientation="horizontal"         android:padding="10dp" >          <textview             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_weight="3"             android:text="@string/txtheadertimeoff"             android:textsize="@dimen/generaltextsize" />          <textview             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_weight="2"             android:text="@string/txtheaderdate"             android:textsize="@dimen/generaltextsize" />          <textview             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_weight="1"             android:text="@string/txtheaderhours"             android:textsize="@dimen/generaltextsize" />          <textview             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:text="@string/txtheaderaction"             android:textsize="@dimen/generaltextsize" />     </linearlayout>      <view         android:id="@+id/lowerseparator"         android:layout_width="fill_parent"         android:layout_height="1dp"         android:layout_below="@id/viewtimeoffdetailsheader"         android:background="@android:color/darker_gray" />      <scrollview         android:id="@+id/scrolldiv"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_below="@id/lowerseparator" >          <linearlayout             android:id="@+id/viewtimeoffdetailsarea"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:orientation="vertical" >              <button                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="button" />             <button                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="button" />             <button                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="button" />             <button                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="button" />             <button                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="button" />             <button                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="button" />             <button                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="button" />             <button                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="button" />             <button                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="button" />             <button                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="button" />         </linearlayout>     </scrollview>      <linearlayout         android:id="@+id/viewtimeoffdetailsfooter"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_alignparentbottom="true"         android:layout_gravity="center"         android:gravity="center"         android:orientation="vertical" >          <linearlayout             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:orientation="horizontal" >              <button                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="button" />              <button                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="button" />              <button                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="button" />         </linearlayout>          <button             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_marginbottom="5dp"             android:layout_marginleft="15dp"             android:background="@drawable/green_button_department"             android:text="@string/btnsubmittimeoff"             android:textcolor="@color/white"             android:textsize="20sp" />     </linearlayout>  </relativelayout> 

i want linerlayout scrolldiv in between of lowerseparator , viewtimeoffdetailsfooter problem scrolview still displaying it's elements after viewtimeoffdetailsfooter starts. . here output. of xml layout

here can see buttons of scrolldiv still displays after viewtimeoffdetailsfooter buttons. know should not put whole file not getting proper solution that's why.
thanks.

you need place above viewtimeoffdetailsfooter, adding below attribute scrolldiv

    android:layout_above="@+id/viewtimeoffdetailsfooter" 

enter image description here


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -