Está en la página 1de 1

// Inflate the layout for this fragment

View view = inflater.inflate(R.layout.fragment_lista_cuota, container, false);


setHasOptionsMenu(true);

//Agregar titulo al fragment


this.getActivity().setTitle("Cuotas: PENDIENTES");
btnPagar = view.findViewById(R.id.ec_btnPagar);
btnPagar.setOnClickListener(this);

swipeComprobante = view.findViewById(R.id.swipeComprobante);
swipeComprobante.setColorSchemeColors(getResources().getColor(R.color.colorAccent))
;
swipeComprobante.setOnRefreshListener(this);

//Vincular y configurar el control RecyclerView


rvEstadoCuenta = (RecyclerView) view.findViewById(R.id.rvEstadoCuenta);
rvEstadoCuenta.setHasFixedSize(true);
rvEstadoCuenta.setLayoutManager(new LinearLayoutManager(this.getContext()));

//Enlazar el fragment con el Adaptador


adaptador = new AdaptadorCuota(this.getContext());
rvEstadoCuenta.setAdapter(adaptador);

//Llamar al método listar


listar();

return view;

También podría gustarte