android MapView always causes an OutOfMemoryError in nested elements

后端 未结 7 1412
我在风中等你
我在风中等你 2020-12-03 12:55

I am trying to create a MapView (currently without any overlays) inside some nested elements. It is basically something like ScrollView -> RelativeLayout -> Rela

7条回答
  •  有刺的猬
    2020-12-03 13:07

    steemcb is correct, but unfortunately there is also a bug in MapView that causes this to happen even if your layout is good. I got the exact same stack trace as yours. It is a fragile component and small changes in layout type will cause it to break unexpectedly, especially if it's wrapped in a ScrollLayout.

    It hasn't yet been addressed by anyone from the Android project.

提交回复
热议问题