我要这个。注意显示文本(即说明)的透明层。还要检查背景一个木制的背景。
我试过这个但没有得到想要的结果
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_margin="10dp"
android:alpha="0.75" >
<TextView
android:id="@+android:id/txtInstructions"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+android:id/relImagesLogo"
android:layout_centerInParent="true"
android:lineSpacingMultiplier="1.5"
android:text="Lorem Ipsum is simply dummy text of
the printing and typesetting industry. Lorem Ipsum has been the
industry's standard dummy text ever since the 1500s, when an unknown
printer took a galley of type and scrambled it to make a type specimen
book. It has survived not only five centuries, but also the leap into
electronic typesetting, remaining essentially unchanged. It was popularised "
android:textColor="@android:color/white"
android:textSize="14sp" />
<RelativeLayout
android:id="@+android:id/relImagesLogo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true" >
<ImageView
android:id="@+android:id/imgInstructionLogo"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginRight="2dp"
android:src="@drawable/instruction_icon" />
<ImageView
android:id="@+android:id/imgInstructionHeading"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_centerVertical="true"
android:layout_toRightOf="@+android:id/imgInstructionLogo"
android:src="@drawable/instruction_heading" />
</RelativeLayout>
</RelativeLayout>
请注意,这android:alpha="0.75"
会使我的所有视图对 0.75 级透明。我不想要这个。我只想要那个透明层。
知道我得到了这个结果