2016-06-24 16 views
1

Das ist mein style.xml und der Fehler ist, nachdem ich bin immer textcolor Artikel hinzugefügtIch habe Probleme mit „Textfarbe“ in meinem style.xml mit

View post on imgur.com

eine andere seltsame Dinge ist, dass „textcolor isn ‚t als u kann im nächsten Bild sehen.

View post on imgur.com

und es spielt keine Rolle, ob ich irgendwelche jener Hinweis nehme ich den gleichen Fehler.

Was könnte falsch sein?

+0

Wie wäre es mit Android: textCol oder ? –

+0

ich musste nur android hinzufügen: –

+0

@ color/colorWhite

Antwort

1

versuchen mit diesem

android:textColor 
+0

Code nur Antworten werden abgeraten. – Emmanuel

1

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

Verwandte Themen