Aurélien Lepage

Results 6 comments of Aurélien Lepage

Really late but this is surely why your animation not behave correctly : http://stackoverflow.com/questions/7289827/how-to-start-animation-immediately-after-oncreate

`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...