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
  • 946
  • 7
  • 15

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,285
  • 5
  • 40
  • 53
eddie
  • 56
  • 4