tags:

views:

56

answers:

1

hi.. Here i attached screens please find it.

I have listview and below it have footer to bind more data at footer button click event,the data has been binded well but the problem here is expanding of empty space after click event,when i scrolled to move down,when i reach the last list row by scrolling the footer position is being at same at initially loaded,but here the problem is the list scrolling is applies to this footer layout also when i scrolled down after list row the footer get's moving down,but i need it be after list last row and i also need to know how to scrolling to be stopped when particular condition satisfied. i'm using inflater class to add footer layout. i placed addfooterView() before my setadapter() method inflater2 = this.getLayoutInflater(); footerView = inflater2.inflate(R.layout.footer, sex,true);

Thanks in advance.

Here my code for footer layout xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical">
  <View android:layout_height="1dip" android:layout_weight="1"
        android:visibility="invisible" android:layout_width="wrap_content" />
  <Button android:id="@+id/footer"  android:gravity="center"
  android:layout_gravity="center"
            android:text="View Next Page" 
            android:layout_width="wrap_content" 
            android:layout_height="wrap_content"/> 

</LinearLayout>

alt text alt text alt text

here the footer view expand down words at each click event from footer.

How can i resolve this issue. Thanks in advance.

A: 

Use android:layout_height="fill_parent" for your ListView, this could solve your problem.

Ragunath Jawahar