private void initData() { tableBodyAdapter = new CommonAdapter<T>(context, viewCreator, new ArrayList<T>()); lv_page_body.setAdapter(tableBodyAdapter); // add lv_page_body.setOnPositionChangedListener((OnPositionChangedListener) context); // new }
private void initData(ArrayList<T> arraylist) { tableBodyAdapter = new CommonAdapter<T>(context, viewCreator, arraylist); lv_page_body.setAdapter(tableBodyAdapter); // add lv_page_body.setOnPositionChangedListener((OnPositionChangedListener) context); // new if (arraylist.size() < 5) { lv_page_body.setTag(UIHelper.LISTVIEW_DATA_FULL); lvNews_foot_more.setText(R.string.load_full); // 已加载全部 lvNews_foot_progress.setVisibility(ProgressBar.GONE); } }