ActionBarSherlock + Google Maps API v2 Duplicate Id

前端 未结 2 1790
陌清茗
陌清茗 2021-01-18 03:15

I\'m trying to integrate the ActionBarSherlock with Google Maps API v2 fragments.

I have a layout with 2 fragments: one for a list layout and another with a SupportM

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-18 03:51

    This is not a problem with ActionBarSherlock, but a broader one when you have SupportMapFragment inside your custom fragment.

    You need to use getChildFragmentManager() to add SupportMapFragment and not through xml.

    Take a look at my answer here: MapFragment in Fragment, alternatives?

提交回复
热议问题