Android Google Map v2 in Registerkarte Überlappendes Problem, Mehrere Karten in Registerkarte
Ich bin neu in Android, arbeite jetzt mit Google Maps v2, ich habe Tabhost verwendet, um Google Maps v2 anzuzeigen. In diesem Tabhost muss ich zwei Google Maps v2 auf einem anderen Tab anzeigen. Wenn ich die Registerkarte s / w zwei Registerkarten, die Karte enthalten, wechsle, wird es überlappt. Ich weiß nicht, um dieses Problem zu überwinden.
// Code ist hier für beide Reiter
mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))
.getMap();
mMap.setMyLocationEnabled(true);
locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
//locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, MIN_TIME, MIN_DISTANCE, this);
Log.e("locamanager",""+locationManager);
Criteria criteria=new Criteria(); // object to retrieve provider
String provider = locationManager.getBestProvider(criteria, true);
Location location=locationManager.getLastKnownLocation(provider);
if(location!=null){
onLocationChanged(location);
}
locationManager.requestLocationUpdates(provider, 400, 1000, this);
}
@Override
public void onLocationChanged(Location location) {
latLng = new LatLng(location.getLatitude(), location.getLongitude());
Log.e("latlng",""+latLng);
cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, 15);
mMap.animateCamera(cameraUpdate);
locationManager.removeUpdates(this);
new ReverseGeocodingTask(getBaseContext()).execute(latLng);
}
Hat jemand eine Lösung bitte hilf mir
Vielen Dank im Voraus