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?