<android.support.wearable.view.DismissOverlayView android:id="@+id/dismiss_overlay" android:layout_height="match_parent" android:layout_width="match_parent"/>private DismissOverlayView mDismissOverlay;
@Overridepublic void onCreate(Bundle savedState) { ... mDismissOverlay = (DismissOverlayView) findViewById(R.id.dismiss_overlay); // Introduce this gesture to the user if necessary mDismissOverlay.setIntroText (R.string.basic_wear_long_press_intro); mDismissOverlay.showIntroIfNecessary(); ...}
@Overridepublic void onMapLongClick(LatLng latLng) { mDismissOverlay.show();}
@Overridepublic void onMapReady(GoogleMap googleMap) { ... mMap.setOnMapLongClickListener(this); ...}
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:src="@drawable/android_marker"/>
@Overridepublic void onCameraChange(CameraPosition cameraPosition) { // Access the center of the camera through: // cameraPosition.target.latitude and // cameraPosition.target.longitude}
@Overridepublic void onMapReady(GoogleMap googleMap) { ... mMap.setOnCameraChangeListener(this); ...}
Give us feedback in our Product Forums.