How to change the color of action in Snackbar?
See original GitHub issueHow to change the color of action in Snackbar?
Hi guys ! Help to understand how to change the color of the action in Snackbar ?
<Snackbar
visible={this.state.visible}
onDismiss={() => this.setState({ visible: false })}
action={{
label: "Undo",
onPress: () => this.setState({ isHidden: true })}}>
You are registered on {namefilm}
</Snackbar>
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Snackbar action text color not changing - Stack Overflow
The argument of setActionTextColor is the int that represents the color, not the resource ID. Instead of this:
Read more >Kotlin Android Snackbar - Change Text Color ... - Tutorial Kart
1. To change Snackbar's Text Color. snack.view.setBackgroundColor(Color.parseColor("#FFFFFF")) · 2. To change Snackbar's Background Color val textView = snack.
Read more >Android Kotlin - Change Snackbar Text and Background Color
To change text, action button, and background color of the Snackbar we are going to use of setTextColor(), setActionTextColor(),and ...
Read more >Theming Material Design Snackbars in Android with Example
in this case the action button color inside the snackbar is set to red-->. < style name = "Widget.App.SnackbarButton" parent = "Widget.
Read more >SnackbarDefaults - Android Developers
Default background color of the Snackbar · Color · primaryActionColor ... You can adjust your privacy controls anytime in your Google settings.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can change it via theme prop:
Hmm, this doesn’t feel quite right. Why doesn’t the Context-provided theme apply to this specific component?