我尝试将ActionBarSherlock与Google Maps API v2片段集成。我有一个包含两个片段的布局:一个用于列表布局,另一个包含SupportMapFragment。
当我单击列表项时,第一次进展顺利,但是当我第二次单击列表项时,它会抛出错误:“Duplicate id 0x7f040038,tag null,or parent id 0x0 with another fragment for com.google.android.gms.maps.SupportMapFragment”。
我尝试了几种解决方案,但是没有一种能够修复它。我做错了什么吗?请帮助我!!
我修改了ActionBarSherlock以包括SherlockMapFragment,以支持新的SupportMap(如此处所示:https://gist.github.com/4392030)。
这是我的代码:https://github.com/inigo-jimenez/TestGoogleMaps。
当我单击列表项时,第一次进展顺利,但是当我第二次单击列表项时,它会抛出错误:“Duplicate id 0x7f040038,tag null,or parent id 0x0 with another fragment for com.google.android.gms.maps.SupportMapFragment”。
我尝试了几种解决方案,但是没有一种能够修复它。我做错了什么吗?请帮助我!!
我修改了ActionBarSherlock以包括SherlockMapFragment,以支持新的SupportMap(如此处所示:https://gist.github.com/4392030)。
这是我的代码:https://github.com/inigo-jimenez/TestGoogleMaps。