I have two lisView
in RelativeLayout
, when the first list is exceed the second list goes down the screen and when i change the screen to landscap mode the second list again goes down. So I want to make the screen scrollable.
Here's my xml code,
<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="wrap_content"
tools:context="com.neemshade.moneyflow.phase1.MainActivity$PlaceholderFragment">
<TextView
android:id="@+id/purchase"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="PURCHASE"/>
<ListView
android:id="@+id/outstandingPurchaseList"
android:paddingTop="3dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/purchase"
android:scrollbars="none">
</ListView>
<TextView
android:id="@+id/sale"
android:layout_centerHorizontal="true"
android:paddingTop="50dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="SALE"
android:layout_below="@+id/outstandingPurchaseList"/>
<ListView
android:id="@+id/outstandingSaleList"
android:paddingTop="3dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/sale"
android:scrollbars="none">
</ListView>