android MapView always causes an OutOfMemoryError in nested elements

后端 未结 7 1411
我在风中等你
我在风中等你 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:00

    I had this problem as well, it occurs when you try to specify the exact dimensions of a mapview. Set one of the dimensions to fill_parent or wrap_content and let the other be whatever dimension you want. That should do the trick.

提交回复
热议问题