Prototik / HoloEverywhere

NO LONGER MAINTAINED. DEVELOP FOR 4.X+ DUDE.
MIT License
2.18k stars 608 forks source link

Undefined attribute on devicece with API 14 and above #838

Open 4nd3250n opened 10 years ago

4nd3250n commented 10 years ago

While running holoeveryehere on android 4.0.4 and 4.2.2 I noticed (due to an Excpetion while inflating ViewPagerIndicator) that the attribute actionBarDivider is not set to drawable. I examined things a little and found out that attribute android:actionBarDivider was introduced in API level 14. As far as I understand holoeverywhere introduces equivalent attributes to all needed attributes introduces in API level 11 and later. But this one got through undefined on device 4.2.2. I added following line in values-v14/abc_themes_base.xml

<style name="Theme.Base.AppCompat" parent="android:Theme.Holo">
    ...
    <!— I added this line -->
    <item name="actionBarDivider">?android:attr/actionBarDivider</item>
    ...
</style>

Someone else may find this useful and I suggest it should be added to existing code.