Android ActionBar.Tab setCustomView() doesn't fill_parent

后端 未结 4 1607
难免孤独
难免孤独 2020-12-10 15:22

I\'m using ActionBar.Tab setCustomView() method with this layout:




        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-10 15:51

    Just ran into this myself and figured out the solution. You should create a style for the tabview that clears the background and the padding and use it in your theme.

    styles.xml:

    
    

    themes.xml:

    
    

提交回复
热议问题