Extends Baseadapter Appear Nullpointerexception
i am public class MyHomePageAdapter extends BaseAdapter and some code is: public static class ViewHolder{ public GridView myfriendsGridView; public Button myfriendsPre,myfr
Solution 1:
i have modify the code:
lv=holder.listview;
Viewprogress= mInflater.inflate(R.layout.usercenter_myhome_myfriends_loading_footer, null);
switcher.addView(holder.footerBu);
switcher.addView(progress);
lv.addFooterView(switcher);
if(ConstValue.myfriendsListInfo.size() > 0)
{
MyFriendssubSet=getDataSubset(0, NUMBER_OF_ITEMS_IN_COLUMN, ConstValue.myfriendsListInfo);
adapter =newFriendsLazyAdapter((Activity) context, MyFriendssubSet);
lv.setAdapter(adapter);
}
i put the holder.listview to a new ListView,the problem is solve
Post a Comment for "Extends Baseadapter Appear Nullpointerexception"