示例#1
0
  private void setupNoticeViews() {
    LayoutInflater inflater = getLayoutInflater();
    View viewNotice = inflater.inflate(R.layout.include_new_viewpager_listview, null);

    noticeListView = (AutoLoadListView) viewNotice.findViewById(R.id.listview);
    noticeListView.setOnLoadDataListener(this);
    layoutEmptyNotice = (EmptyLayout) viewNotice.findViewById(R.id.empty_layout);
    layoutEmptyNotice.setOnGetDataAgainListener(this);
    viewRefreshNotice = (RefreshLayout) viewNotice.findViewById(R.id.pull_refresh_view);
    viewRefreshNotice.setOnHeaderRefreshListener(this);

    viewList.add(viewNotice);
  }
示例#2
0
  private void setupMessageViews() {
    LayoutInflater inflater = getLayoutInflater();
    View viewMessage = inflater.inflate(R.layout.include_new_viewpager_expandable_listview, null);

    messageListView =
        (AutoLoadExpandableListView) viewMessage.findViewById(R.id.expandable_listview);
    messageListView.setOnLoadDataListener(this);
    layoutEmptyMessage = (EmptyLayout) viewMessage.findViewById(R.id.empty_layout);
    layoutEmptyMessage.setOnGetDataAgainListener(this);
    viewRefreshMessage = (RefreshLayout) viewMessage.findViewById(R.id.pull_refresh_view);
    viewRefreshMessage.setOnHeaderRefreshListener(this);

    viewList.add(viewMessage);
  }