Padding between ActionBar's home icon and title

前端 未结 21 1635
名媛妹妹
名媛妹妹 2020-11-28 20:03

Does anybody know how to set padding between the ActionBar\'s home icon and the title?

21条回答
  •  一整个雨季
    2020-11-28 20:32

    In your XML, set the app:titleMargin in your Toolbar view as following:

    
    

    Or in your code:

    toolbar.setTitleMargin(16,16,16,16); // start, top, end, bottom
    

提交回复
热议问题