1

I have a GridView in which I am showing list of books. I have tried by creating custom layout and putting cancel button onlongclick listener of a view. But i am not able to apply a shaking animation to the items. Can anyone guide me how can i apply an animation to the items and make it similarly like iphone?

Now I want to provide feature to delete the Multiple items from the GridView like the View which shows as below:

enter image description here

I did lots of research for this ,but failed to get such kind of view in Android.

Can any one guide me for this?

GrIsHu
  • 29,068
  • 10
  • 64
  • 102

1 Answers1

1

You'll have to make a custom gridview for that. Place a button (x) on top of the grid item and set its visibility to invisible.. onLongPress of the grid item, make that button visible.. onclick of the button, delete that grid item by getting its id.

Hope I have given you a direction.

Tushar Gogna
  • 4,963
  • 6
  • 31
  • 42