2

レイアウトに 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はアクション バーを除く画面全体のスペースを占有し、 のどこかをクリックpoiViewすると が表示され、 の上部に重なって表示されます。mapContainermapContainer

poiViewただし、 内のビューをクリックすると、 にもイベントが伝播さmapContainerれるようです。poiViewmapConatiner

これを止めることは可能ですか?

4

0 に答える 0