0
我有以下佈局:的Android做活動的一部分,透明
<RelativeLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="200dip"
android:layout_alignParentBottom="true" >
</LinearLayout>
</RelativeLayout>
我要讓線性佈局完全透明的,這意味着,從活動堆棧所述先前活動的內容應該是在直線可見佈局區域。
我已經嘗試使用setAlpha(0)與線性佈局;它確實使其透明,但它顯示線性佈局區域中的活動背景色。
我也嘗試將活動的android:主題設置爲@android:style/Theme.Translucent.NoTitleBar,但這會使整個活動顯示前一活動的內容。
任何人都可以提出一種方法嗎?
謝謝。