I have a layout in which I am using a color and I made its opacity to 0.2. I have one textview in that layout but when I am specifying less opacity to layout then Textview text also faded. Why is that so? I only want to fade background color not textview's text.
// code of layout
<?xml version="1.0" encoding="utf-8"?>
<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="wrap_content"
android:alpha="0.2"
android:background="@drawable/background_rounded_black"
android:padding="@dimen/dp10">
<TextView
android:id="@+id/txtNews"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:alpha="1"
android:text="djfhwhfirhfiohrhvfuhvfjvbv vknfjvnfjv fv vefjkhvfhvv hvufevhfuievefv ivfhiefhvfe ifvjioefv"
android:textColor="@android:color/white"
android:textSize="@dimen/dp15" />
<TextView
android:id="@+id/txtTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@id/txtNews"
android:layout_marginTop="@dimen/dp10"
android:alpha="1"
android:drawableLeft="@drawable/clock_news"
android:text="12 hrs ago"
android:textColor="@android:color/white"
android:textSize="@dimen/dp15" />
and now how it looks http://prntscr.com/gbxi87