0
我有一个列表视图一的FrameLayout里面,我想在地图视图 XML点击的背景是列表视图点击页眉
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="match_parent" >
<com.google.android.gms.maps.MapView
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/txt_totalHotels" />
<ListView
android:id="@+id/list_hotelRow"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom" >
</ListView>
</FrameLayout>
这里我添加了一个线性布局具有一定的高度,使它作为透明为ListView头
我想点击谷歌地图 我想禁用列表视图标题的点击要点击超过了谷歌地图 请帮我为这一个
您已将MapView和ListView重叠在一起,而且更多的layout_above属性不适用于FrameLayout。 我建议你使用线性布局来避免复杂性,因为在FrameLayout中,如果你的MapView在你的ListView后面,onClickListener不会为MapView触发。 – Nanites
谢谢先生,我会更改代码并尝试实施这一项 – user1516991