use of org.qii.weiciyuan.ui.adapter.UserListAdapter in project weiciyuan by qii.
the class AbstractUserListFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.listview_layout, container, false);
empty = (TextView) view.findViewById(R.id.empty);
progressBar = (ProgressBar) view.findViewById(R.id.progressbar);
pullToRefreshListView = (PullToRefreshListView) view.findViewById(R.id.listView);
pullToRefreshListView.setOnRefreshListener(new UserListOnRefreshListener());
pullToRefreshListView.setOnLastItemVisibleListener(new UserListOnLastItemVisibleListener());
pullToRefreshListView.setOnPullEventListener(getPullEventListener());
pullToRefreshListView.setOnScrollListener(new UserListOnScrollListener());
pullToRefreshListView.setOnItemClickListener(new UserListOnItemClickListener());
pullToRefreshListView.getRefreshableView().setFooterDividersEnabled(false);
footerView = inflater.inflate(R.layout.listview_footer_layout, null);
getListView().addFooterView(footerView);
dismissFooterView();
userListAdapter = new UserListAdapter(AbstractUserListFragment.this, bean.getUsers(), getListView());
pullToRefreshListView.setAdapter(userListAdapter);
return view;
}
Aggregations