Android:TextView不尊重android:TextViewStyle使用appcompat-v7 22.1.1

时间:2015-05-07 07:09:12

标签: android android-appcompat appcompat-v7-r21 appcompat-v7-r22.1

我使用以下代码覆盖了Textview颜色代码在较低版本的appcompat-v7 22.1中工作正常后我更新支持存储库这些不起作用。对这些有任何想法吗?

<style name="AppTheme" parent="Theme.AppCompat">
    <item name="android:textViewStyle">@style/AppTheme.TextView</item>
</style>

<style name="AppTheme.TextView" parent="android:Widget.TextView">
    <item name="android:textColor">@color/black</item>
</style>

1 个答案:

答案 0 :(得分:2)

在appcompat-v7 22.1.1中,他们没有定义&#34; textViewStyle&#34;对于TextView,请参阅以下链接了解详细信息 https://code.google.com/p/android/issues/detail?id=170476