Hi! To achive the same functionality use this code instead:
mapView = (MapView) findViewById(R.id.MapView); mapView.setBuiltInZoomControls(true); As a side effect you don't need to put the mapview in a relative layout with a view for the zoom controls. Just put the mapview anywhere in your layout xml just as you would with any other view. On Aug 28, 9:54 am, sweet <junkybr...@gmail.com> wrote: > Hi i've tested to do the tuto HelloMapView ti the URL:http:// > developer.android.com/intl/fr/guide/tutorials/views/hello-mapview.html > and when i wrote the step 9: > > linearLayout = (LinearLayout) findViewById(R.id.zoomview); > mapView = (MapView) findViewById(R.id.mapview); > mZoom = (ZoomControls) mapView.getZoomControls(); > > eclipse says that mapView.getZoomControls is deprecated ... By what > can i replace that ??? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---