我的程序有两个布局:layout1和layout2。 当layout1被OnTouchListener()触摸时,我使layout2可见。 我想layot1顶部的layout2。 相反,layout2被layout1覆盖。 任何人都可以帮助我解决问题? 我的代码为:Android中的布局优先级
android:id="@+id/RelativeLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
android:id="@+id/relativeLayout2"
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:visibility="invisible">
android:id="@+id/video_playback_pause"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:id="@+id/videoView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_centerInParent="true"/>
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true" android:layout_below="@id/relativeLayout2"/>
我想relativeLayout2覆盖videoView1。
2011-12-08
brian
+0
请提供代码/ XML示例。 –