Aurélien Lepage
Aurélien Lepage
Is your project a library ?
Really late but this is surely why your animation not behave correctly : http://stackoverflow.com/questions/7289827/how-to-start-animation-immediately-after-oncreate
Same problem here
`onItemClear` is called when the ItemTouchHelper has completed the move or swipe. That is your `onDragEnd` ;)
In your `ViewHolder` which implements `ItemTouchHelperViewHolder` you need to override `onItemSelected` and `onItemClear`. Start a scale animation in `onItemSelected` and reverse in `onItemClear` and you are done :)
There is only four classes easily understandable.. I don't think there is a need to create a library for this. Just copy/paste the classes in your project and adapt them...