Open top menu


try this code..

// first, get all checked checkBox in listview
final SparseBooleanArray checkedItems = listviewroti_prata.getCheckedItemPositions();

for (int i = 0; i < checkedItems.size(); i++){
  
//find all checked or not
final boolean isChecked; = checkedItems.valueAt(i);
   
if (!isChecked){
   
Toast.makeText(getApplicationContext(), "not checked", Toast.LENGTH_LONG).show();                                                            
 } else{
Toast.makeText(getApplicationContext(), " checked", Toast.LENGTH_LONG).show();
}
Tagged

0 comments