4

I would like to reduce boilerplate setting up Snackbar colors in my code. Can I style it overriding an existing style, for example?

GSala
  • 836
  • 5
  • 13

1 Answers1

4

Unfortunately, Snackbar using a few common items with other widgets (like colorAccent), so just changing those was problematic for me too. Instead I added my own design_layout_snackbar_include.xml. Take the original and modify what you will need. It will work for all of your snackbars.

a.ch.
  • 8,120
  • 5
  • 39
  • 52
eddie
  • 56
  • 4