2. Select the images required and get the positions of checked items.//Show hide select button if images are selected or deselectedpublicvoidshowSelectButton(){ArrayList<String>selectedItems=imagesAdapter.getCheckedItems();if(selectedItems.size()>0){selectImages.setText(selectedItems.size()+” – Images Selected”);selectImages.setVisibility(View.VISIBLE);}elseselectImages.setVisibility(View.GONE);}
3. Fill the checked items into an array list.