1

In my application AndoidManifest.xml

<application 
android:theme="@style/AppTheme"> 

/res/values/styles.xml

<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> 
<item name="android:textColor">#0A0B0A</item> 
</style>      

When I start my application on real device with Android 6 I see White Colored text in my TextView. The TexView doesn't have any style or android:textColor attributes. whats the problem? on virtual device with Android 4 it works correctly (the text color is Black)

sorry for my language

spammm
  • 11
  • 5

1 Answers1

0

Use this,

res/values/colors: create a color tag and add your color value and the name of that color

<color name="text_color">#0A0B0A</color>

Use this inTextView as

<TextView
 ....
android:textColor="@color/text_color"/>

For universal edit of textColor

<style name="AppTheme" parent="@android:style/TextAppearance">
<item name="android:textColor">#0A0B0A</item>
</style>
W4R10CK
  • 5,502
  • 2
  • 19
  • 30