Android : Color of fonts on preview window and real device are different
<p>As you can see in the image that font color on emulator is totally black but on preview window textview at top have slightly light blue color and at the bottom text has white font. I have tested this app on two real device and i am facing the same black font problem.
I hope you guys will help to get out of this problem.
here's the code.</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.example.android.myfirstcard.MainActivity"&gt;
    &lt;ImageView
        android:src="@drawable/ghat"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scaleType="centerCrop"/&gt;
    &lt;TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Oldest City Of The World."
        android:textSize="36sp"
        android:textColor="#03a9f4"
        android:layout_margin="20dp"/&gt;
    &lt;TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Incredible Varanasi!"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:fontFamily="sans-serif-light"
        android:textSize="36sp"
        android:textColor="#ffffff"
        android:layout_margin="20dp"/&gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p><a href="https://i.stack.imgur.com/qvdWy.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qvdWy.jpg" alt="enter image description here"></a></p>