Ich versuche, Alpha nur das relative Layout, das die Textansicht enthält, aber es gibt Alpha, es ist Kinder auch jetzt Textview haben Alpha auch ohne es geben, was ich möchte entfernen Alpha von ihm und nur auf relatives LayoutAlpha zum Layout machen alle seine Kinder haben Alpha? Android
<?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>
Nun, Kinder erben von ihren Eltern. Was hast du erwartet? Jetzt fahre durch alle Kinder und stelle ihr Alpha individuell ein. –
Ich habe Mann, aber nicht arbeiten, ich muss die Textansicht haben schwarzen Hintergrund mit Alpha .6 Ich habe so viel versucht und nichts funktioniert :( –
Aber warum müssen Sie die Eltern Alpha einstellen? –