基本上我有2个线性布局。用户单击按钮时,一个线性布局将展开或折叠。另一个将始终显示在顶部。这里是我的xml:Android XML设置z-Index
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
android:id="@+id/btnNewsFeed"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@color/lightred"
android:minHeight="20dp"
android:text="News feed"
android:textColor="#FFFFFF" />
android:id="@+id/llNewsFeed"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/btnNewsFeed"
android:background="#FFFFFF"
android:orientation="vertical"
android:visibility="gone" >
android:id="@+id/EventNewsFeedListview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:listSelector="#F6CECE" >
android:id="@+id/legendDiv"
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_below="@+id/btnNewsFeed"
android:alpha=".75"
android:background="#fff"
android:orientation="vertical"
android:visibility="gone" >
android:id="@+id/tableEvent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:stretchColumns="1"
android:visibility="gone" >
//Table Rows
所以将在抽屉式导航栏项目时用户选择显示在我的传说DIV,它具有0.75的不透明度。而我的新闻稿会在btnNewsFeed onClick时展开或者崩溃。我现在遇到的问题是让我们说当legendDiv显示时,llNewsFeed隐藏在legendDiv后面。我不知道是否有任何可能的方式来设置z-index?因为llNewsFeed应该在legendDiv前面。
任何指南?提前致谢。