I have a ArrayList of type ArrayList v_DtCajasTarimasLista and every time I enter new data they are added correctly and they are shown in the ListView, but what happens is that the last record entered appears to the bottom of the ListView and what I need is the opposite that appears at the beginning of the ListView.
How would you have to do to invert the order of values of
ListView
?
I hope you can help me. Thanks
My code:
v_DtCajasTarimas = new ListaDtCajasTarimas();
v_DtCajasTarimas.setV_itemCode(codigo);
v_DtCajasTarimas.setV_status("");
v_DtCajasTarimas.setIdLinea(contCajas);
v_DtCajasTarimasLista.add(v_DtCajasTarimas);
adaptadorListaCajaTarima = new AdaptadorListaCajaTarima(getMyActivity(), v_DtCajasTarimasLista);
adaptadorListaCajaTarima.setObjetosGenerales(objetosGenerales);
adaptadorListaCajaTarima.setAppCompatActivity(getAppCompatActivity());
adaptadorListaCajaTarima.setItemFragment(this);
listViewCajaTarima.setAdapter(adaptadorListaCajaTarima);