How to change the color of tab 'underbar' in actionbarsherlock

前端 未结 2 1726
执笔经年
执笔经年 2020-12-28 19:08

Ok i\'m loosing more sanity then ever. I can\'t find/understand how to style the damn thing. I managed to change the background of the tab itself but I can\'t cahnge the col

2条回答
  •  伪装坚强ぢ
    2020-12-28 19:31

    I found that for the background it's better to copy the drawables (9 patches and xml) found on the Android SDK res directory and change it to have the color you like.

    They use a background with the bottom bar included, so I don't think it's possible to change the bottom bar alone.

    Here's what I have, working with green color for the bottom bar:

    
    
    
    
    

    The tab indicator looks like this:

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    I hope it helps!

提交回复
热议问题