@Override
 public void initComponents() {
   lvPulldown = (PullDownListView) innerView.findViewById(R.id.lvPulldown);
   list = new ArrayList<ArticleListItem>();
   adapter = new ArticleListAdapter(getActivity(), list);
   lvPulldown.getListView().setAdapter(adapter);
   loader = new ArticleListLoader(getActivity());
   lvPulldown.enableAutoFetchMore(true, 1);
   lvPulldown.getListView().setFocusableInTouchMode(false);
 }
示例#2
0
  @Override
  public void initComponents() {
    lvPullDown = (PullDownListView) innerView.findViewById(R.id.lvPullDown);
    tvLoading = (TextView) innerView.findViewById(R.id.tvLoading);
    tvNodata = (TextView) innerView.findViewById(R.id.tvNodata);
    if (listMessage == null) {
      listMessage = new ArrayList<SbbsMeMessage>();
    }
    adapter = new SbbsMeMessageAdapter(getActivity(), listMessage);
    lvPullDown.getListView().setAdapter(adapter);
    loader = new SbbsMessageLoader(getActivity());
    lvPullDown.enableAutoFetchMore(true, 1);
    lvPullDown.setOnPullDownListener(this);

    int devide = UIUtils.dipToPx(8);
    lvPullDown.getListView().setDivider(null);
    lvPullDown.getListView().setDividerHeight(devide);
    lvPullDown.getListView().setPadding(devide, devide, devide, devide);
    lvPullDown.getListView().setOverScrollMode(View.OVER_SCROLL_NEVER);
    lvPullDown.getListView().setFocusableInTouchMode(false);
  }