ActionBarSherlock - actionbar custom background with divider

后端 未结 4 521
轮回少年
轮回少年 2020-12-04 10:30

I\'m implementing ActionBarsherlock and I want to change the actionbar background.

I override the properties but the blue divider dissapear. How can I use custom ba

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 10:52

    The blue divider is the background by default. It's a 9-patch drawable which will ensure the line always appears at the bottom of the action bar regardless of its height.

    For your situation I would copy the default background .pngs from Android and then modify them so that the expandable section of the 9-patch is your target background color. This will fill the action bar with your desired color while maintaining the blue border at the bottom.

提交回复
热议问题