Select and delete multiple items in a list in Sketchware android project

1. In image manager of project, add delete icon ic_delete_white . 2. In Resource, in menu folder, add an xml file named context_menu.xml . Put following code in this file: <menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/delete" android:title="Delete" android:icon="@drawable/ic_delete_white" android:showAsAction="always"/> </menu> 3. Create a new custom variable of type SparseBooleanArray with name selectedItems and define it as new SparseBooleanArray(). 4. Put following codes in onCreate . Change names of variables as in your project. // Enable multiple selection mode with contextual action bar listview1.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL); // Handle selection events via MultiChoiceModeListener listview1.setMultiChoiceModeListener(new AbsListView.MultiChoiceModeListener() { @Override public void onItemCheckedStat...