Code example for ActionMode

Methods: setTitle

0
            return contextualActionModeCallback.onClick(item.getItemId(), position, id);
          } 
        }); 
        CharSequence text = contextualActionModeCallback.getCaption(view);
        if (text != null) {
          actionMode.setTitle(text);
        } 
        view.setSelected(true);
        return true; 
      } 
    }); 
  }; 
   
  @Override 
  public void configureMapViewContextualMenu(final SupportMapFragment fragment,
      final MapContextActionCallback callback) {
	   
	fragment.getMap().setOnMarkerDragListener(new OnMarkerDragListener() {
		private LatLng position;
		private Marker currentMarker;
		private ActionMode actionMode;