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

Not working in recyclerView (epoxy) #39

Open
carlosmuvi opened this issue May 28, 2018 · 1 comment
Open

Not working in recyclerView (epoxy) #39

carlosmuvi opened this issue May 28, 2018 · 1 comment

Comments

@carlosmuvi
Copy link

Hey! first of all, great library, super flexible and easy to customize.

I'm trying to add a SimpleRatingBar view as part of an item in a RecylerView.

    @ModelProp fun setStarCount(starCount: Float?) = with(vehicle_rating) {
        show(starCount != null)
        starCount?.let { rating = starCount }
    }

The starCount binding is called properly, If I replace the SimpleRatingBar by a TextView for example, the rating is shown properly, but using the library it's always 0 stars (the setRating method is called with the correct values).

Any idea why that can be happening?

Thanks!

@carlosmuvi
Copy link
Author

Solved - Epoxy was saving the view state calling saveViewHierarchy. Sorry about that!

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

1 participant