Custom Home Icon in Action Bar Sherlock

前端 未结 4 594
名媛妹妹
名媛妹妹 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:58

    Define an own style, like this:

    
      
    
    

    I think here your can use abHomeLayout. Set this style for your activity like this:

    
       
            
            
       
    
    

    In MainActivity you can use getSupportActionBar()... functions.

提交回复
热议问题