views:

25

answers:

2

This is my layout that suppot delete from listview ,the problem is when listview height is higher than screen height it goes under the button , so need a solution for avoding it

A: 

Put ListView in ScrollView (so one will be able to scroll entire list), like:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/mainView"
          android:orientation="vertical"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent">
<ScrollView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">
    <ListView
        android:id="@+id/listView"
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:choiceMode="singleChoice"
        android:headerDividersEnabled="true">
    </ListView>
</ScrollView>
</LinearLayout>
barmaley
A: 

Hi Sudeep, isn't this the same issue you asked yesterday in question http://stackoverflow.com/questions/4032163/android-delete-from-listview/4034184#4034184

If so did setting the layout_weight of the listview to "1" not help? If not please post your layout XML so we can see what you've got so far...

Dave