使用com.google.android.maps.MapView重绘布局时出错

时间:2013-02-22 10:44:08

标签: android android-mapview redraw

我正在使用MapView创建一个应用程序,当我重绘布局时,应用程序会在xml中为MapView提供错误。有什么问题?

代码:

//add points to map //sets the zoom to see the location closer
mapview.getController().setZoom(12); //this will let you to zoom in or out using the controllers 
mapview.setBuiltInZoomControls(true); 
List< Overlay > mapOverlays = mapview.getOverlays(); 
Drawable drawable = this.getResources().getDrawable(R.drawable._map_shop);   
MyItemizedOverlay itemizedoverlay = new MyItemizedOverlay(drawable, this); 

Cumps

0 个答案:

没有答案