I am trying to give alpha to only the relative layout which contains the textview but it give alpha to it's children too now textview have alpha too without give it anything i want to remove alpha from it and just leave on relative layout
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/phaseLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ImageView
android:id="@+id/phaseImage"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:scaleType="fitXY"
android:src="@drawable/pic1" />
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/phaseImage"
android:layout_alignParentRight="true"
android:alpha=".6"
android:background="@drawable/text_view_border"
android:layout_marginBottom="10dp" >
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:padding="5dp" >
<TextView
android:id="@+id/phaseName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:padding="5dp"
android:text=""
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@color/white" />
</RelativeLayout>
</FrameLayout>
</RelativeLayout>
Aucun commentaire:
Enregistrer un commentaire