The Material 3 Design guidelines describes the option of theming based on content (instead of theming based on the current wallpaper of the user). See below for the section:
Now applying a dynamic theme to an activity on android works with:
DynamicColors.applyToActivityIfAvailable(this);
But how do you:
- Generate a theme based on content (preferably using a view or an image)?
- Apply that generated theme?
Are there methods available for this?
This functionality is only available with the material-components-android version 1.10 currently in alpha.
Content-based Dynamic Colors are explained in the MDC documentation on Color: https://github.com/material-components/material-components-android/blob/master/docs/theming/Color.md#content-based-dynamic-colors