Skip to content

Not working in recyclerView (epoxy) #39

@carlosmuvi

Description

@carlosmuvi

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions