use of com.google.android.libraries.maps.SupportMapFragment in project android-samples by googlemaps.
the class MarkerCollisionDemoActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.marker_collision_demo);
SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);
mapFragment.getMapAsync(this);
}
use of com.google.android.libraries.maps.SupportMapFragment in project android-samples by googlemaps.
the class PolylineDemoActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.polyline_demo);
pagerAdapter = new PolylineControlFragmentPagerAdapter(getSupportFragmentManager(), /* isLiteMode= */
false);
pager = findViewById(R.id.pager);
pager.setAdapter(pagerAdapter);
// onPageSelected(0) isn't invoked once views are ready, so post a Runnable to
// refreshControlPanel() for the first time instead...
pager.post(this::refreshControlPanel);
polylineRadio = findViewById(R.id.polyline_radio);
SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);
mapFragment.getMapAsync(this);
}
Aggregations