textColor
ist ein Attribut in AppCompat Bibliothek zur Verfügung gestellt, wo als android:textColor
in Material Thema vorgesehen ist.
Beispiel:
-Material Thema Verwendung und aufgerufene android:textColor
Attribut:
<style name="AppTheme" parent="android:Theme.Material.Light">
<item name="android:textColor">@color/blue</item>
<item name="android:colorPrimary">@color/primary</item>
<item name="android:colorPrimaryDark">@color/primary_dark</item>
....
....
</style>
mit AppCompat Bibliothek mit nur textColor
Attribute:
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="textColor">@color/blue</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
...
...
</style>
diese Antwort Kredit @rohitarya: https://stackoverflow.com/a/36378905/4758255
Wie wäre es mit Android: textCol oder ? –
ich musste nur android hinzufügen: –