android: How to add icons/drawables to the PagerTabStrip from the Android Support Lib version 4?

前端 未结 2 775
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-07 14:53

android: How to add icons/drawables to the PagerTabStrip from the Android Support Lib version 4 ?

This is very specific question to people aware of the PagerTabStri

2条回答
  •  误落风尘
    2020-12-07 15:38

    @MatthewHousser if the solution of SteveR doesn't work it may be because you set a fixed size in PagerTabStrip in your XML. This is what I had :

    
    
    

    This is what I have now :

    
    
    

    The image wasn't displayed in the first case, and is displayed in the second case. Hope it will help.

提交回复
热议问题