Open carlosmuvi opened 6 years ago
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.
SimpleRatingBar
@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).
setRating
Any idea why that can be happening?
Thanks!
Solved - Epoxy was saving the view state calling saveViewHierarchy. Sorry about that!
saveViewHierarchy
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.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 (thesetRating
method is called with the correct values).Any idea why that can be happening?
Thanks!