Classcastexception When I Add Footerview To Listview
I have a fragment in which I am trying to display a ListView. When I get to the bottom of the ListView, some more items for ListView will be retrieved in network request. For this
Solution 1:
In second argument pass listview instead of null
footerView = inflater.inflate(R.layout.endless_list_footer, mResultListView, false);
The 2nd argument is the parent of this newly inflated view and by passing the list view Layout params will get automatically set to the view.
Post a Comment for "Classcastexception When I Add Footerview To Listview"