Android MapView overlaps DrawerLayout

前端 未结 1 1734
半阙折子戏
半阙折子戏 2020-12-14 21:58

I have simple layout structure:

DrawerLayout
\\-- FrameLayout // @+id/fragment_container
\\-- ListView    // @+id/drawer_list

By clicking o

相关标签:
1条回答
  • 2020-12-14 22:48

    So, I find workaround solution: just wrap MapView into container and place empty View above. Thanks to this answer: https://stackoverflow.com/a/16231935/1891118

    There is my updated layout:

    <FrameLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            >
    
        <com.google.android.gms.maps.MapView
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                />
    
        <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                />
    </FrameLayout>
    
    0 讨论(0)
提交回复
热议问题