2

我的布局中有两个视图添加:mapContainerPoiView

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:pv="http://schemas.android.com/apk/res-auto"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

    <LinearLayout
        android:id="@+id/mapContainer"
        android:paddingTop="@dimen/abc_action_bar_default_height"
        android:orientation="vertical"
        android:layout_height="match_parent" android:layout_width="match_parent">
    </LinearLayout>

    <com.app.ui.view.PoiView
        android:id="@+id/poiView"
        android:visibility="invisible" android:paddingBottom="@dimen/abc_action_bar_default_height"
        android:layout_height="wrap_content" android:layout_width="match_parent" android:layout_alignParentBottom="true"></com.app.ui.view.PoiView>
</RelativeLayout>

现在mapContainer将占据屏幕的整个空间,除了操作栏poiViewmapContainer如果我单击mapContainer.

但是我发现如果我点击poiView里面的视图mapContainer也会收到,似乎poiView将事件传播到mapConatiner.

有可能阻止这种情况吗?

4

0 回答 0