0

I am having a GridView and added more than 50 images on it and performing delete operation on them.

I observe that what images i am deleting,they are leaving the blank space from top, means other images are not taking that place which is look so ugly.

I want that deleting image space should be covered by other images in grid.

Thanks.

code

if(v.getId() == R.id.delete_button)
        {
            adp.list.removeAll(bitmapList);
            adp.notifyDataSetChanged();
            bitmapList.clear();
            grid.clearChoices();



        }
Monty
  • 3,205
  • 8
  • 36
  • 61

1 Answers1

0

after every image you delete try to reload grid view by calling notifydatasetchanged on adapter this will help link

Iftikar Urrhman Khan
  • 1,131
  • 1
  • 10
  • 21