-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback,android.view.KeyEvent.Callback,android.view.accessibility.AccessibilityEventSource
public final class CircularSeekBar extends View
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceCircularSeekBar.OnCircularSeekBarChangeListenerListener for the CircularSeekBar. Implements the same methods as the normal OnSeekBarChangeListener.
public classCircularSeekBar.Companion
-
Field Summary
Fields Modifier and Type Field Description private Paint.CapcircleStyleprivate FloatcircleStrokeWidthprivate BooleandisablePointerprivate FloatpointerStrokeWidthprivate FloatpointerAngleprivate FloatstartAngleprivate FloatendAngleprivate final RectFpathCircleprivate IntegerpointerColorprivate IntegerpointerHaloColorprivate IntegercircleColorprivate IntegercircleFillColorprivate IntegercircleProgressColorprivate IntegerpointerAlphaprivate IntegerpointerAlphaOnTouchprivate Floatmaxprivate Floatprogressprivate BooleanisNegativeEnabledprivate BooleanisLockEnabled
-
Constructor Summary
Constructors Constructor Description CircularSeekBar(Context context, AttributeSet attrs, Integer defStyleAttr, Integer defStyleRes)CircularSeekBar(Context context, AttributeSet attrs, Integer defStyleAttr)CircularSeekBar(Context context, AttributeSet attrs)CircularSeekBar(Context context)
-
Method Summary
Modifier and Type Method Description final Paint.CapgetCircleStyle()The style of the circle, can be butt, round or square. final UnitsetCircleStyle(Paint.Cap circleStyle)final FloatgetCircleStrokeWidth()The width of the circle (in pixels). final UnitsetCircleStrokeWidth(Float circleStrokeWidth)final BooleangetDisablePointer()If disable pointer, we can't seek the progress. final UnitsetDisablePointer(Boolean disablePointer)final FloatgetPointerStrokeWidth()The radius of the pointer (in pixels). final UnitsetPointerStrokeWidth(Float pointerStrokeWidth)final FloatgetPointerAngle()Angle of the pointer arc. final UnitsetPointerAngle(Float pointerAngle)final FloatgetStartAngle()Start angle of the CircularSeekBar. final UnitsetStartAngle(Float startAngle)final FloatgetEndAngle()End angle of the CircularSeekBar. final UnitsetEndAngle(Float endAngle)final RectFgetPathCircle()RectFthat represents the circle (or ellipse) of the seekbar.final IntegergetPointerColor()Holds the color value for mPointerPaintbefore thePaintinstance is created.final UnitsetPointerColor(Integer pointerColor)final IntegergetPointerHaloColor()Holds the color value for mPointerHaloPaintbefore thePaintinstance is created.final UnitsetPointerHaloColor(Integer pointerHaloColor)final IntegergetCircleColor()Holds the color value for mCirclePaintbefore thePaintinstance is created.final UnitsetCircleColor(Integer circleColor)final IntegergetCircleFillColor()Holds the color value for mCircleFillPaintbefore thePaintinstance is created.final UnitsetCircleFillColor(Integer circleFillColor)final IntegergetCircleProgressColor()Holds the color value for mCircleProgressPaintbefore thePaintinstance is created.final UnitsetCircleProgressColor(Integer circleProgressColor)final IntegergetPointerAlpha()Holds the alpha value for mPointerHaloPaint.final UnitsetPointerAlpha(Integer pointerAlpha)final IntegergetPointerAlphaOnTouch()Holds the OnTouch alpha value for mPointerHaloPaint.final UnitsetPointerAlphaOnTouch(Integer pointerAlphaOnTouch)final FloatgetMax()Max value that this CircularSeekBar is representing. final UnitsetMax(Float max)final FloatgetProgress()final UnitsetProgress(Float progress)final BooleangetIsNegativeEnabled()Used for enabling/disabling the negative progress bar. final UnitsetIsNegativeEnabled(Boolean isNegativeEnabled)Used for enabling/disabling the negative progress bar. final BooleangetIsLockEnabled()Used for enabling/disabling the lock option for easier hitting of the 0 progress mark. final UnitsetIsLockEnabled(Boolean isLockEnabled)Used for enabling/disabling the lock option for easier hitting of the 0 progress mark. BooleanonTouchEvent(MotionEvent event)final UnitsetOnSeekBarChangeListener(CircularSeekBar.OnCircularSeekBarChangeListener l)final UnitapplyCustomCircleFillPaint(Function1<Paint, Unit> block)custom Paintinstance used to draw the circle fill.final UnitapplyCustomCirclePaint(Function1<Paint, Unit> block)custom Paintinstance used to draw the inactive circle.final UnitapplyCustomCircleProgressPaint(Function1<Paint, Unit> block)custom Paintinstance used to draw the active circle (represents progress).final UnitapplyCustomPointerPaint(Function1<Paint, Unit> block)custom Paintinstance used to draw the center of the pointer.final UnitapplyCustomCircleProgressGlowPaint(Function1<Paint, Unit> block)custom Paintinstance used to draw the glow from the active circle.final UnitapplyCustomPointerHaloPaint(Function1<Paint, Unit> block)custom Paintinstance used to draw the halo of the pointer.final UnitapplyCustomPointerHaloBorderPaint(Function1<Paint, Unit> block)custom Paintinstance used to draw the border of the pointer, outside of the halo.-
Methods inherited from class me.tankery.lib.circularseekbar.CircularSeekBar
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addFocusables, addKeyboardNavigationClusters, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, addTouchables, animate, announceForAccessibility, autofill, autofill, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, checkInputConnectionProxy, clearAnimation, clearFocus, clearViewTranslationCallback, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchCreateViewTranslationRequest, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchGenericFocusedEvent, dispatchGenericMotionEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPointerCaptureChanged, dispatchPopulateAccessibilityEvent, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchScrollCaptureSearch, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, draw, drawableHotspotChanged, drawableStateChanged, findFocus, findViewById, findViewWithTag, findViewsWithText, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, gatherTransparentRegion, generateDisplayHash, getAccessibilityClassName, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getContextMenuInfo, getDefaultFocusHighlightEnabled, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverScrollMode, getOverlay, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getReceiveContentMimeTypes, getResources, getRevealOnFocusHint, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootSurfaceControl, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollCaptureHint, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchDelegate, getTouchables, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTranslationResponse, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocus, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOnLongClickListeners, hasOverlappingRendering, hasPointerCapture, hasTransientState, hasWindowFocus, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPivotSet, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollContainer, isScrollbarFadingEnabled, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, jumpDrawablesToCurrentState, keyboardNavigationClusterSearch, layout, measure, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onAttachedToWindow, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateDrawableState, onCreateInputConnection, onCreateViewTranslationRequest, onCreateVirtualViewTranslationRequests, onDetachedFromWindow, onDisplayHint, onDragEvent, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onLayout, onOverScrolled, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideStructure, onProvideVirtualStructure, onReceiveContent, onResolvePointerIcon, onRtlPropertiesChanged, onScreenStateChanged, onScrollCaptureSearch, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTrackballEvent, onViewTranslationResponse, onVirtualViewTranslationResponses, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, performReceiveContent, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, requestUnbufferedDispatch, requireViewById, resetPivot, restoreDefaultFocus, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAllowClickWhenDisabled, setAlpha, setAnimation, setAnimationMatrix, setAutofillHints, setAutofillId, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnReceiveContentListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRenderEffect, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollBarSize, setScrollBarStyle, setScrollCaptureCallback, setScrollCaptureHint, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setScrollbarFadingEnabled, setSelected, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setViewTranslationCallback, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setWindowInsetsAnimationCallback, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CircularSeekBar
CircularSeekBar(Context context, AttributeSet attrs, Integer defStyleAttr, Integer defStyleRes)
-
CircularSeekBar
CircularSeekBar(Context context, AttributeSet attrs, Integer defStyleAttr)
-
CircularSeekBar
CircularSeekBar(Context context, AttributeSet attrs)
-
CircularSeekBar
CircularSeekBar(Context context)
-
-
Method Detail
-
getCircleStyle
final Paint.Cap getCircleStyle()
The style of the circle, can be butt, round or square.
-
setCircleStyle
final Unit setCircleStyle(Paint.Cap circleStyle)
-
getCircleStrokeWidth
final Float getCircleStrokeWidth()
The width of the circle (in pixels). Sets the circle stroke width.
-
setCircleStrokeWidth
final Unit setCircleStrokeWidth(Float circleStrokeWidth)
-
getDisablePointer
final Boolean getDisablePointer()
If disable pointer, we can't seek the progress.
-
setDisablePointer
final Unit setDisablePointer(Boolean disablePointer)
-
getPointerStrokeWidth
final Float getPointerStrokeWidth()
The radius of the pointer (in pixels).
Sets the pointer pointer stroke width.
-
setPointerStrokeWidth
final Unit setPointerStrokeWidth(Float pointerStrokeWidth)
-
getPointerAngle
final Float getPointerAngle()
Angle of the pointer arc. Default is 0, the pointer is a circle when angle is 0 and the style is round. Can not be less than 0. can not be greater than 360.
Gets the pointer angle.
-
setPointerAngle
final Unit setPointerAngle(Float pointerAngle)
-
getStartAngle
final Float getStartAngle()
Start angle of the CircularSeekBar. Note: If mStartAngle and mEndAngle are set to the same angle, 0.1 is subtracted from the mEndAngle to make the circle function properly.
-
setStartAngle
final Unit setStartAngle(Float startAngle)
-
getEndAngle
final Float getEndAngle()
End angle of the CircularSeekBar. Note: If mStartAngle and mEndAngle are set to the same angle, 0.1 is subtracted from the mEndAngle to make the circle function properly.
-
setEndAngle
final Unit setEndAngle(Float endAngle)
-
getPathCircle
final RectF getPathCircle()
RectFthat represents the circle (or ellipse) of the seekbar.
-
getPointerColor
final Integer getPointerColor()
Holds the color value for
mPointerPaintbefore thePaintinstance is created.Gets the pointer color.
Sets the pointer color.
-
setPointerColor
final Unit setPointerColor(Integer pointerColor)
-
getPointerHaloColor
final Integer getPointerHaloColor()
Holds the color value for
mPointerHaloPaintbefore thePaintinstance is created.Gets the pointer halo color.
Sets the pointer halo color.
-
setPointerHaloColor
final Unit setPointerHaloColor(Integer pointerHaloColor)
-
getCircleColor
final Integer getCircleColor()
Holds the color value for
mCirclePaintbefore thePaintinstance is created.Gets the circle color.
Sets the circle color.
-
setCircleColor
final Unit setCircleColor(Integer circleColor)
-
getCircleFillColor
final Integer getCircleFillColor()
Holds the color value for
mCircleFillPaintbefore thePaintinstance is created.Gets the circle fill color.
Sets the circle fill color.
-
setCircleFillColor
final Unit setCircleFillColor(Integer circleFillColor)
-
getCircleProgressColor
final Integer getCircleProgressColor()
Holds the color value for
mCircleProgressPaintbefore thePaintinstance is created.Gets the circle progress color.
Sets the circle progress color.
-
setCircleProgressColor
final Unit setCircleProgressColor(Integer circleProgressColor)
-
getPointerAlpha
final Integer getPointerAlpha()
Holds the alpha value for
mPointerHaloPaint.Gets the pointer alpha value.
Sets the pointer alpha.
-
setPointerAlpha
final Unit setPointerAlpha(Integer pointerAlpha)
-
getPointerAlphaOnTouch
final Integer getPointerAlphaOnTouch()
Holds the OnTouch alpha value for
mPointerHaloPaint.Gets the pointer alpha value when touched.
Sets the pointer alpha when touched.
-
setPointerAlphaOnTouch
final Unit setPointerAlphaOnTouch(Integer pointerAlphaOnTouch)
-
getMax
@Synchronized() final Float getMax()
Max value that this CircularSeekBar is representing.
Get the current max of the CircularSeekBar.
Set the max of the CircularSeekBar. If the new max is less than the current progress, then the progress will be set to zero. If the progress is changed as a result, then any listener will receive a onProgressChanged event.
-
getProgress
final Float getProgress()
-
setProgress
final Unit setProgress(Float progress)
-
getIsNegativeEnabled
final Boolean getIsNegativeEnabled()
Used for enabling/disabling the negative progress bar.
-
setIsNegativeEnabled
final Unit setIsNegativeEnabled(Boolean isNegativeEnabled)
Used for enabling/disabling the negative progress bar.
-
getIsLockEnabled
final Boolean getIsLockEnabled()
Used for enabling/disabling the lock option for easier hitting of the 0 progress mark.
-
setIsLockEnabled
final Unit setIsLockEnabled(Boolean isLockEnabled)
Used for enabling/disabling the lock option for easier hitting of the 0 progress mark.
-
onTouchEvent
Boolean onTouchEvent(MotionEvent event)
-
setOnSeekBarChangeListener
final Unit setOnSeekBarChangeListener(CircularSeekBar.OnCircularSeekBarChangeListener l)
-
applyCustomCircleFillPaint
final Unit applyCustomCircleFillPaint(Function1<Paint, Unit> block)
custom
Paintinstance used to draw the circle fill.
-
applyCustomCirclePaint
final Unit applyCustomCirclePaint(Function1<Paint, Unit> block)
custom
Paintinstance used to draw the inactive circle.
-
applyCustomCircleProgressPaint
final Unit applyCustomCircleProgressPaint(Function1<Paint, Unit> block)
custom
Paintinstance used to draw the active circle (represents progress).
-
applyCustomPointerPaint
final Unit applyCustomPointerPaint(Function1<Paint, Unit> block)
custom
Paintinstance used to draw the center of the pointer.
-
applyCustomCircleProgressGlowPaint
final Unit applyCustomCircleProgressGlowPaint(Function1<Paint, Unit> block)
custom
Paintinstance used to draw the glow from the active circle.
-
applyCustomPointerHaloPaint
final Unit applyCustomPointerHaloPaint(Function1<Paint, Unit> block)
custom
Paintinstance used to draw the halo of the pointer.
-
applyCustomPointerHaloBorderPaint
final Unit applyCustomPointerHaloBorderPaint(Function1<Paint, Unit> block)
custom
Paintinstance used to draw the border of the pointer, outside of the halo.
-
-
-
-