3

My App is not showing text colors except black and white on nexus 4 lollipop device. My app contains just a text view with hello world red colored text. But it is appearing black on my device.

Emulator is showing Red colored "Hello world!" but my device shows it in black color.... No matter whatever color i choose my nexus 4 lollipop device shows it in black color.... Sorry i am new here so i can not post images yet.

This is my xml code:

<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"
    android:paddingBottom="@dimen/activity_vertical_margin"
    tools:context=".MainActivity">

    <TextView
        android:text="@string/hello_world"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/textView"
        android:textColor="#f00"
        android:textSize="40sp"
        android:gravity="center"/>

</RelativeLayout>
Saif
  • 397
  • 1
  • 9

1 Answers1

0

Try using

android:textColor="#ffff0000"

instead of

android:textColor="#f00"
Kushal
  • 8,100
  • 9
  • 63
  • 82
  • not working... same black color is appearing on my physical device...but emulator is showing accurate color. – Saif Apr 06 '15 at 12:59