@Override
  public View onCreateView(
      LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View rootView =
        inflater.inflate(R.layout.ext_cashila_payments_fragment_pending, container, false);
    ButterKnife.inject(this, rootView);

    mbw = MbwManager.getInstance(this.getActivity());
    cs = ((CashilaPaymentsActivity) getActivity()).getCashilaService();
    eventBus = mbw.getEventBus();
    lvPending.setEmptyView(tvEmpty);

    getBillPays(true, true);

    return rootView;
  }
Пример #2
0
  @Override
  public View onCreateView(
      LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View rootView =
        inflater.inflate(R.layout.ext_cashila_payments_fragment_pending, container, false);
    ButterKnife.inject(this, rootView);

    mbw = MbwManager.getInstance(this.getActivity());
    cs = ((CashilaPaymentsActivity) getActivity()).getCashilaService();
    eventBus = mbw.getEventBus();

    getBillPays(true);

    lvPending.setOnItemSelectedListener(
        new AdapterView.OnItemSelectedListener() {
          @Override
          public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {}

          @Override
          public void onNothingSelected(AdapterView<?> adapterView) {}
        });

    return rootView;
  }
 public void refresh(boolean showProgress) {
   getBillPays(showProgress, false);
 }