I have a listview (1) in which another listview (2) is loaded next to a textview, the text shown in the textview goes from "1/2018" to "10/2018" consecutively. In the Listview (1) it can be seen that said textview does not show consecutive months of the year. I do not know if it has to do with the slow loading of the listview (2) since the call of the listview adapter (2) is in the getView of the listview adapter (1). Can you help me? Here the listview adapter code (1):
@Override
public View getView(int i, View view, ViewGroup viewGroup) {
LayoutInflater inflater = (LayoutInflater)C.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
ExtractoList datos = ListaList.get(i);
if (view==null){
view=inflater.inflate(R.layout.cardview_extracto,null);
}
final TextView txtMesAnio = (TextView)view.findViewById(R.id.txtMes);
ListView LvDetalles = (ListView)view.findViewById(R.id.LvExtracto);
adapter =new AdapterExtractoDetalles(C,datos.getListaDetalle());
txtMesAnio.setText(datos.getMesAnio());
LvDetalles.setAdapter(adapter);
LvDetalles.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
TextView txtCuota = (TextView)view.findViewById(R.id.txtCuota);
Toast.makeText(C,txtCuota.getText().toString()+" "+i,Toast.LENGTH_SHORT).show();
}
});
return view;
}