astuetz/PagerSlidingTabStrip — pull request #41 by eeVoskos (2013-10-24 18:10:17+00:00)
Title: Conflicting attribute names with AppCompat library

#### Intro
There is an [inherent problem][1] 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][2] library project, which is part of the official android support library. Namely, the two attributes affected are:
+ `dividerPadding`
+ `textAllCaps`

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 :-)

[1]: https://code.google.com/p/android/issues/detail?id=22576
[2]: https://developer.android.com/reference/android/support/v7/appcompat/package-summary.html