Skip to content Skip to sidebar Skip to footer

Listview.setfooterview(v) Footer Change Not Visible In Listview Displayed By Viewpager

I call listView.setFooterView(v) but no change is visible. Now I should add that the listView is inside a view (not a frament) that is added into a ViewPager. So the View that h

Solution 1:

The solution to this is to first add the footer view and then set the adapter. if the adapter is set first and then the footer view is added it does now show up. removeFooterView(v) can be used without resetting the adapter however.

Solution 2:

Your should call notifyDataSetChanged() on your ViewPager's adapter.

Post a Comment for "Listview.setfooterview(v) Footer Change Not Visible In Listview Displayed By Viewpager"