Error inflating class android.support.design.widget.TabLayout

后端 未结 4 389
长发绾君心
长发绾君心 2020-12-03 14:53

I\'m trying to create a menu tab based on Google\'s \"material design\" using Eclipse, but I got an error:

Error inflating class android.support.desig

4条回答
  •  醉酒成梦
    2020-12-03 15:19

    Don't know if this relates to your problem. I changed tags of TabLayout and ViewPager to ones that correspond to ones on this page: https://material.io/develop/android/components/tab-layout/

    Here is my code from my app, which made errors go away:

    
    
    
    

提交回复
热议问题