private void initRefreshListView() {
    // TODO Auto-generated method stub

    pullToRefreshListView.setOnRefreshListener(
        new OnRefreshListener() {

          @Override
          public void onRefresh() {
            // TODO Auto-generated method stub
            // 下拉刷新
            Toast.makeText(context, "下拉刷新", Toast.LENGTH_SHORT).show();
            pullToRefreshListView.onRefreshComplete();

            //				presenter.request(RequestParam.REQUEST_QUERY);
            System.out.println("下拉刷新");
          }
        });

    pullToRefreshListView.setOnLastItemVisibleListener(
        new OnLastItemVisibleListener() {
          @Override
          public void onLastItemVisible() {
            // TODO Auto-generated method stub

          }
        });
  }
  private void init() {
    // TODO Auto-generated method stub
    ((TextView) findViewById(R.id.activity_title)).setText("黑白名单");
    getBlackList = findViewById(R.id.get_black_list);
    getWhiteList = findViewById(R.id.get_white_list);
    presenter = new WifiWBPresenter(this);
    list = new ArrayList<WBModel>();
    context = this;

    pullToRefreshListView = (PullToRefreshListView) findViewById(R.id.wb_list);
    initRefreshListView();
    blackList = pullToRefreshListView.getRefreshableView();

    presenter.request(RequestParam.REQUEST_QUERY_ONE);

    adapter = new BlackAdapter();
    blackList.setAdapter(adapter);
  }