Skip to content

Applying background styles for Material Card View not working #159

@mburdett555

Description

@mburdett555

In style.xml I have:
<style name="daycall" parent="CardView"> <item name="cardBackgroundColor">#777777</item> </style> <style name="daypass" parent="CardView"> <item name="cardBackgroundColor">#AAAAAA</item> </style>
In my onBindViewHolder for RecyclerView I use:
holder.timingClass.style(R.style.daypass)

However the changes do not apply, no background color for the card view is actioned. Is this a known problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions