1
我的main.xml
有ListView
和ImageView
。现在ListView
落后于ImageView
。当用户触摸屏幕时,我怎样才能让ImageView
落后于ListView
。我如何在程序中实现?我的main.xml
如下。更改程序中的视图顺序
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<LinearLayout android:id="@+id/tracker_container"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:orientation="vertical"
/>
<ImageView
android:id="@+id/imageView1"
android:contentDescription="@string/display"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/im1"
/>
</LinearLayout>
带来列表视图顶部在哪里的ListView在该XML?只有linearlayouts和imageview –
没有我有另一个XML列表片段。 – batuman
然后包括它,所以我们可以帮助 –