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,但这会使整个活动显示前一活动的内容。
任何人都可以提出一种方法吗?
谢谢。