Android Custom Snackbar: can't remove margins

前端 未结 4 1082
北海茫月
北海茫月 2021-01-20 12:45

Regardless of whether or not it is a good idea to create a custom Snackbar, I have a custom Snackbar and I can\'t seem to get rid of the margins. I\'ve tried several things

4条回答
  •  暖寄归人
    2021-01-20 13:23

    In dimens.xml.

    Use this:

     0dp
    

    But remember that this will get applied to all the snackbars in your application.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题