Meetic / Shuffle

An easy to use swiping-view for Android
885 stars 83 forks source link

Revert shuffle page #12

Closed mgursch closed 8 years ago

mgursch commented 8 years ago

Hi

need following feature:

User swipes a card away. User can restore last card by button click.

-> swipe back

Need a possibility to set adapter position (optional with animation to specific position)

Would be great if you can add this feature

mgursch commented 8 years ago

Are there some thoughts on this feature request?

florent37 commented 8 years ago

Hi, you want a revert option ?

mgursch commented 8 years ago

Exactly

Just want an option to show the card before

eg 0,1,2,3,2,1,0

mShuffle.revert(); or mShuffle.setSelectedAdapterPosition(1, withAnimation);

florent37 commented 8 years ago

the 2,1,0 will came from swipe or from a button outside of the shuffle ?

mgursch commented 8 years ago

in my specific case i need a button action to do this.

florent37 commented 8 years ago

I'm on it ;)

florent37 commented 8 years ago

can you try the 1.0.5 ? 👍

compile 'com.meetic.shuffle:shuffle:1.0.5'
compile 'com.meetic.dragueur:dragueur:1.0.3'

[]

mgursch commented 8 years ago

Hey

thanks a lot for your support. I see an issue with that feature:

When I start the app it works for the first and second card. If i swipe further and do the revert one card is flickering.

Have tried it with images from web (using Glide) and images from local drawable resources. I uploaded a video here https://goo.gl/photos/qPu47xWuU3XoVVxn8

Thanks a lot

florent37 commented 8 years ago

I don't think it's an problem with the image with glide, I'll tried to investigate it

mgursch commented 8 years ago

The app you see in the video is not using glide its loading images via setImageResource - from local drawables folder.

and there is no reason that glide hide an image when I call shuffle.revert. maybe a bug with the animation ?

florent37 commented 8 years ago

I can reproduce it without using glide

florent37 commented 8 years ago

Yes I think it's a bug with the animation

mgursch commented 8 years ago

Very good if you can reproduce it :)

thanks again for your support.

florent37 commented 8 years ago

I fixed it in the 1.0.6 👍