>
Boa tarde!!!
tenho um listview com checkbox, gostaria de ler o listview todas as linhas do listview e verificar se o checkbox esta marcado ou nao...
segue parte do código:
try {
ListView ltwDadosPlaqueta = (ListView) findViewById(R.id.ltwDadosPlaqueta);
checkBoxSelecinados = (CheckBox) findViewById(R.id.chkSelLV);
if (ltwDadosPlaqueta!= null) {
Adapter adapter = (Adapter) ltwDadosPlaqueta.getAdapter();
String texto = "Selecionado \n";
for (int i = 0; i < adapter.getCount(); i++) {
Toast.makeText(getApplicationContext(), Integer.toString(i).toString(), Toast.LENGTH_SHORT).show();
}
}
} catch (Exception e) {
e.printStackTrace();
}
}