Package 

Class CopyrightOverlay

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean alignBottom
      protected boolean alignRight
    • Method Summary

      Modifier and Type Method Description
      void setAlignBottom(boolean alignBottom)
      void setAlignRight(boolean alignRight)
      void setTextSize(int fontSize)
      void setTextColor(int color)
      void setOffset(int x, int y) Sets the screen offset.
      void draw(Canvas canvas, MapView map, boolean shadow) Draw the overlay over the map.
      void draw(Canvas canvas, Projection pProjection)
      void setCopyrightNotice(String pCopyrightNotice)
      • Methods inherited from class org.osmdroid.views.overlay.Overlay

        draw, draw, getBounds, isEnabled, onDetach, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onPause, onResume, onScroll, onShowPress, onSingleTapConfirmed, onSingleTapUp, onTouchEvent, onTrackballEvent, setEnabled
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CopyrightOverlay

        CopyrightOverlay(Context context)
    • Method Detail

      • setOffset

         void setOffset(int x, int y)

        Sets the screen offset. Values are in real pixels, not dip

        Parameters:
        x - horizontal screen offset, if aligh right is set, the offset is from the right, otherwise lift
        y - vertical screen offset, if align bottom is set, the offset is pixels from the bottom (not the top)
      • draw

         void draw(Canvas canvas, MapView map, boolean shadow)

        Draw the overlay over the map. This will be called on all active overlays with shadow=true,to lay down the shadow layer, and then again on all overlays with shadow=false. Callersshould check isEnabled() before calling draw(). By default, draws nothing.

        changed for 5.6 to be public see https://github.com/osmdroid/osmdroid/issues/466If possible, use draw instead (cf. MapSnapshot