android - Convert FragmentManager to MapView -
i'm using code show map
@override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); requestwindowfeature(window.feature_no_title); getwindow().setflags(windowmanager.layoutparams.flag_fullscreen, windowmanager.layoutparams.flag_fullscreen); setcontentview(r.layout.activity_main); fragmentmanager myfragmentmanager = getfragmentmanager(); mapfragment mymapfragment = (mapfragment)myfragmentmanager.findfragmentbyid(r.id.map); mymap = mymapfragment.getmap(); mymap.setmylocationenabled(true); mymap.setmaptype(googlemap.map_type_terrain); }
and i'm using markers, drag them , delete them. if want make map mapview able draw lines using ondraw , touchevent in same time, how can convert mapview?
Comments
Post a Comment