Padding between ActionBar's home icon and title

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

    EDIT: make sure you set this drawable as LOGO, not as your app icon like some of the commenters did.

    Just make an XML drawable and put it in the resource folder "drawable" (without any density or other configuration).

    
    
    
        
    
    
    
    

    The last step is to set this new drawable as logo in your manifest (or on the Actionbar object in your activity)

    Good luck!

提交回复
热议问题