Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad recycling in RecyclerView #12

Open
dev-alepage opened this issue Dec 28, 2014 · 4 comments
Open

Bad recycling in RecyclerView #12

dev-alepage opened this issue Dec 28, 2014 · 4 comments

Comments

@dev-alepage
Copy link

In a RecyclerView (I think it causes the same problem in ListView or GridView), when I set an HoverView on a cell, after scrolling, the HoverView is not recycled.

So, if I select one visible item and scroll, I find the state of the previously selected item in another item of the list.

Do you have an idea of the correct way to implement HoverView recycling on scroll ?

@deepakbaliga
Copy link

Facing the same problem. Not able to solve it. @dev-alepage Please let me know if you find the solution
[email protected]

@arashmidos
Copy link

I had the same problem too.

@dev-things-30
Copy link

I had modified this according to my need and hopefully not getting this issue. Take a look.
https://www.dropbox.com/s/ixuawrdrldf8rhe/Android%20Hover.zip?dl=0

This is how i used it.

holder.mSampleLayout.setHoverView(holder.llBottom);
holder.mSampleLayout.setBlurDuration(550);
holder.mSampleLayout.addChildAppearAnimator(holder.llBottom, holder.tvVideoName, Techniques.FlipInX, 550, 250);;

holder.mSampleLayout.addChildDisappearAnimator(holder.llBottom, holder.tvVideoName, Techniques.FlipOutX, 550, 250);

holder.mSampleLayout.addChildAppearAnimator(holder.llBottom, holder.tvDownloadPlay, Techniques.Landing);
holder.mSampleLayout.addChildDisappearAnimator(holder.llBottom, holder.tvDownloadPlay, Techniques.TakingOff);
try {
holder.mSampleLayout.dismissHover(1, holder.llBottom, Techniques.FlipOutX, 1, 0);
} catch (Exception e) {
}

@johnjake
Copy link

johnjake commented Jan 10, 2018

@jontyankit can you share your source code? do you have hover_sample.xml in your layout? I was working on it but it doesnt show anything I dont get error either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants