I need help. How can I change the design of the text in snackbar in styles app? The change in the code does not interest me. I found the following code. But it is not worki
With the Material Components Library you can globally change the snackbar style in your app theme:
Note:
snackbarStyle and snackbarButtonStyle require the version 1.1.0snackbarTextViewStyle requires the version 1.2.0.For example:
It is just an example how to change also the parent style for the action button. You can use for example a standard Widget.MaterialComponents.Button:
To change the background color of the SnackBar you can use:
Or if you prefer: