File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes how to inflate footer layout below listview without empty space Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "how to inflate footer layout below listview without empty space" Watch "how to inflate footer layout below listview without empty space" New topic
Author

how to inflate footer layout below listview without empty space

Senthil Ganesan
Greenhorn

Joined: Jul 29, 2010
Posts: 16
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



in my main layout i have tabhost with group of lists.

[Thumb - device2.png]
 Filename device2.png [Disk] Download
 Description
 Filesize 49 Kbytes
 Downloaded:  36 time(s)

[Thumb - device1.png]
 Filename device1.png [Disk] Download
 Description
 Filesize 36 Kbytes
 Downloaded:  15 time(s)

[Thumb - device3.png]
 Filename device3.png [Disk] Download
 Description
 Filesize 33 Kbytes
 Downloaded:  31 time(s)

 
 
subject: how to inflate footer layout below listview without empty space
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com