Is there a way to speed up re-rendering recyclerview items in color variable changed.?


I have noticed that when dark mode is changed, all items change color quickly except for the items in a recycler view. I am using a formula for the color of the container which basically sets it to one color if dark mode is true and another one if false. But I am using hex codes. I have not been able to figure out how to use a formula in a theme variable.

Is there a way to speed up the re rendering of the recycler view items? Some system variable maybe?

Hi! There’s no way to speed up the re-rendering that I’d be aware of I’m afraid :frowning: The theme variables allow using formulas though, so perhaps this will help:

i tried that and i could not find any of the colors which are listed as choices for app background and container backgrounds

The naming is not super clear – I tend to search with “primary” or “neutral” etc to find the right path. They are under smart color palettes.