Padding between ActionBar's home icon and title

前端 未结 21 1695
名媛妹妹
名媛妹妹 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:28

    You can change drawableSize of your DrawerArrow like this:

    
    
    
    

    It isn't correct answer, because you can't choose padding side and DrawerArrow icon scaling when change drawableSize (drawableSize = width = height). But you can margin from left. To margin from right do

    findViewById(android.R.id.home).setPadding(10, 0, 5, 0);
    

提交回复
热议问题