Change background color of Tabs in ActionBar in Sherlocks library in Android?

后端 未结 3 888
情话喂你
情话喂你 2021-01-17 05:40

I am working on Actionbar using Sherlock library. I want to change the Background Image of the Actionbar and Tabs differently. Currently I have changed the Background of the

3条回答
  •  盖世英雄少女心
    2021-01-17 05:52

    you can use this code:

    actionBar.setStackedBackgroundDrawable(new ColorDrawable(yourColor)); // for example new ColorDrawable(Color.BLUE)
    

提交回复
热议问题