@Override protected void registerViews() { refreshScrollView.setOnRefreshListener( new OnRefreshListener2<ScrollView>() { @Override public void onPullDownToRefresh(PullToRefreshBase<ScrollView> refreshView) { refresh(); } @Override public void onPullUpToRefresh(PullToRefreshBase<ScrollView> refreshView) { pagenum++; getService(); } }); listView.setOnItemClickListener( new OnItemClickListener() { @Override public void onItemClick( AdapterView<?> paramAdapterView, View paramView, int paramInt, long paramLong) { Bundle bundle = new Bundle(); bundle.putString("productId", localServices.get(paramInt).getId()); jump( LocalServiceDetailFragment.class.getName(), localServices.get(paramInt).getProductName(), bundle); } }); }
@Override protected void initViews() { getFragmentManager() .beginTransaction() .replace(R.id.order_confirm_part_address, addressFragment) .commit(); listView.setAdapter(carAdapter); countTotalPrice(); }
@Override protected void initViews() { wuliuList.setAdapter(wuliuAdapter); refreshScrollView.setMode(Mode.PULL_FROM_START); }
@Override protected void initViews() { refreshScrollView.setMode(Mode.BOTH); listView.setAdapter(serviceAdapter); }