Conflicting attribute names with AppCompat library by eeVoskos · Pull Request #41 · astuetz/PagerSlidingTabStrip
Intro
There is an inherent problem in declaring styleable attributes on Android: you may end up with conflicting attribute names when you use multiple library projects that declare custom attributes.
Problem
In PagerSlidingTabStrip there are some attribute names that conflict with ones that exist in the AppCompat library project, which is part of the official android support library. Namely, the two attributes affected are:
dividerPaddingtextAllCaps
The problem is that currently you cannot include in your project both PagerSlidingTabStrip and AppCompat, as your project won't build. The error log on Eclipse is the following:
.../PagerSlidingTabStrip/library/res/values/attrs.xml:10: error: Attribute "dividerPadding" has already been defined
.../PagerSlidingTabStrip/library/res/values/attrs.xml:15: error: Attribute "textAllCaps" has already been defined
Solution
The suggested solution in such cases is to put a prefix to all attributes in third party libraries, so that conflicts are avoided. An easier solution would be to simply change the names of the two affected attributes, but for consistency purposes I created this pull request that prefixes all declared attributes in PagerSlidingTabStrip with the word strip.
Result
You are able to use both PagerSlidingTabStrip and AppCompat in your project, along with any other android library projects. Happy :-)