I am developing an Android application using android sdk v 2.1. In one page i am merging different layouts like headers, footer , list views etc.
My code is something like this:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" android:background="#FFFFFF">
<com.myapp.LogoBarActivity
android:id="@+id/logobarLayout" android:layout_height="wrap_content"
android:layout_width="fill_parent"/>
<include layout="@layout/header_2"/>
<include layout="@layout/header_3"/>
<ListView android:id="@android:id/list" android:layout_width="fill_parent"
android:layout_height="wrap_content"></ListView>
<include layout="@layout/list_footer" />
</LinearLayout>
But the problem is that bottom buttons (layout=”@layout/list_footer”) are not displaying when listview crossing the screen. I want to scroll listview between
layout=”@layout/header_3″ and layout=”@layout/list_footer” and all layout should be fixed on screen. Please guide me.
You should use the RelativeLayout to get what you want . Your XML Code will be something like this :