Display Map v2 in popup Window not display in android?

前端 未结 2 1457
甜味超标
甜味超标 2021-01-22 20:00

i want to open the popup window on that i used the map v2 for displaying map v2 in popup window but is not display here i put my xml layout and activity class

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-22 20:13

    their is only two silly problem as I found .. You just change this fragment

                    
    

    to this..

                    
    

    and change a line in method [initiatePopupWindow]

    map= ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.popupmapview)).getMap(); 
    

    to this..

    map = ((MapFragment) getFragmentManager().findFragmentById(R.id.popupmapview)).getMap();
    

提交回复
热议问题