Pablo
06/24/2024, 8:51 AMIf you go back to MainActivity.kt and refresh the preview, the preview colors don't actually change! That's because by default, your Preview will use dynamic colors. You can see the logic for adding dynamic coloring in Theme.kt, using the dynamicColor boolean parameter.
To see the non-adaptive version of your color scheme, run your app on a device with API level lower than 31 (corresponding to Android S, where adaptive colors were introduced). You'll see the new colors
Why using dynamic colors makes the preview to not display the changes? Is that a bug? They force you to use and old emulator to see the changes. I don't see this as normal.Khubaib Khan
06/24/2024, 10:11 AMKhubaib Khan
06/24/2024, 10:14 AMKhubaib Khan
06/24/2024, 10:15 AMPablo
06/24/2024, 10:40 AM