Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ListView.addFooterView(v) not displaying

I have a ListView declared inside a layout. When I addFooterView(v) it does NOT display. What are the possible reasons for this? Is there some setting in ListView or my Adapter to make this display immediately? It does eventually display but only after reinitializing the view, adapter and all.

Update: It seems that resetting the adapter finally makes it appear .... Obviously not something that I should have to do everytime I call addFooterView(v).

The view containing the ListView is inside a View maintained by PageViewer so not sure if that effects this or not.

like image 865
Code Droid Avatar asked Nov 27 '22 22:11

Code Droid


1 Answers

Add the footer view before you set the adapter is the only thing we can replicate with when we are not able to see your code.

like image 170
Wroclai Avatar answered Dec 15 '22 10:12

Wroclai