Add margins to Snackbar view
I'm updating my current app to use snackbars, in the Google spec they show various ways of using them http://www.google.com/design/spec/components/snackbars-toasts.html#snackbars-toasts-specs Example A: Example B: Here's my code atm: Snackbar snackbar = Snackbar.make(mParentLayout, displayMessage, Snackbar.LENGTH_LONG); snackbar.setAction(actionMessage, mClickListener); snackbar.show(); I get the result in Example B, How can i add margins? In addition to Saeid's answer, you can get the default SnackBar layout params and modify them as you want: public static void