How to create app bar with icons using TabLayout Android Design?

前端 未结 4 1178
小鲜肉
小鲜肉 2021-01-31 10:33

I\'m trying to use the new TabLayout in the android design library to create app bar with icons.

public void setupTabLayout(TabLayout tabLayout) {
    tabLayout         


        
4条回答
  •  星月不相逢
    2021-01-31 11:26

    As documentation said You can add items to TabLayout through the xml by use of TabItem. An example usage is like:

     
    
         
    
         
    
     
    

提交回复
热议问题