public boolean addMarker(String label,int value,int textOffsetX,int textOffsetY,OnMarkerClickListener onMarkerClickListener){
  if (value > mMax || value < 0) {
    return false;
  }
  Marker marker=new Marker();
  String lb=label;
  if (label != null && label.length() > 6) {
    lb=label.substring(0,6);
  }
  marker.label=lb;
  marker.value=value;
  marker.offsetX=textOffsetX;
  marker.offsetY=textOffsetY;
  marker.progressSweep=(float)value / mMax * mSweepAngle;
  marker.onMarkerClickListener=onMarkerClickListener;
  if (mMarkers == null) {
    mMarkers=new ArrayList<>();
  }
  mMarkers.add(marker);
  requestLayout();
  postInvalidate();
  return true;
}

public boolean addMarker ( String label , int value , int textOffsetX , int textOffsetY , OnMarkerClickListener onMarkerClickListener ) { if ( value > mMax || value < 0 ) { return false ; } Marker marker = new Marker ( ) ; String lb = label ; if ( label != null && label . length ( ) > 6 ) { lb = label . substring ( 0 , 6 ) ; } marker . label = lb ; marker . value = value ; marker . offsetX = textOffsetX ; marker . offsetY = textOffsetY ; marker . progressSweep = ( float ) value / mMax * mSweepAngle ; marker . onMarkerClickListener = onMarkerClickListener ; if ( mMarkers == null ) { mMarkers = new ArrayList < > ( ) ; } mMarkers . add ( marker ) ; requestLayout ( ) ; postInvalidate ( ) ; return true ; }
adds a marker on the seekarc . if parameter label is provided ( not null ) , then it will be shown as label on the marker , else the value will be shown as label .
