Custom Home Icon in Action Bar Sherlock

前端 未结 4 538
名媛妹妹
名媛妹妹 2021-02-03 21:34

I am trying to set custom icon for home icon using ActionBarSherlock library. I have tried to set custom layout using abHomeLayout attribute in my custom theme. But

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-03 21:53

    I had similar issue with incorrect padding of the home icon on devices api<11 (i.e not the fully fledged platform action bar) and the abHomeLayout style only worked api>11

    My solution was to copy the abs__action_bar_home.xml layout from ABS to child project and manually add padding to the abs__home imageview

    
    

提交回复
热议问题