I\'m sorry if my question looks beginner, but what\'s the difference between textColor
and android:textColor
? I can\'t understand where use which
Thank
textColor
is an attribute provided in AppCompat library, where as android:textColor
is provided in Material theme.
Example:
Using Material theme and referring android:textColor
attribute:
<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>
using AppCompat library with only 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>