You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 4 spinners whose values depend on the selection of the others, when I select a value of the first spinner I update the value of the other spinner, I am working with the adapters to update the data and it does but visually the spinner does not reset to its value by default (with the hint). This is my code:
@Override
public void showDepartamentos(List<LocalidadTO> departamentos) {
adapterDepartamentos.clear();
adapterProvincias.clear();
adapterDistritos.clear();
adapterComplejos.clear();
this.departamentos = departamentos;
for (LocalidadTO l : departamentos) {
adapterDepartamentos.add(l.getNombre());
}
adapterDepartamentos.notifyDataSetChanged();
adapterProvincias.notifyDataSetChanged();
adapterDistritos.notifyDataSetChanged();
adapterComplejos.notifyDataSetChanged();
}
My data is shown in the spinner but I just want the spinner to be visually reset by default with the hint
The text was updated successfully, but these errors were encountered:
I have 4 spinners whose values depend on the selection of the others, when I select a value of the first spinner I update the value of the other spinner, I am working with the adapters to update the data and it does but visually the spinner does not reset to its value by default (with the hint). This is my code:
My data is shown in the spinner but I just want the spinner to be visually reset by default with the hint
The text was updated successfully, but these errors were encountered: