今天想使用TabLayout实现选项卡布局,(我用的是eclipse+ADT)不料导入android support design包的时候报错了(error: Error: No resource found that matches the given name: attr 'backgroundTint'.),style资源文件里面的backgroundTint属性无法匹配,也就是找不到该属性定义的地方。后来在stackoverflow上找到了解决方法:原因是design包是依赖于appcompat -v7库的,故需要引入该库——右击design工程 -> properties -> android -> 点击add将appcompat -v7库引入即可。
关于support design库的更多问题及其解决方案请参考:
更多的待后续使用时遇到会一一列出。