SeslCircularSeekBarView
A custom view that displays a circular seek bar with two pointers and a progress arc. Users can interact with the pointers to set a range, and the progress arc visually represents this range. It also supports a "sleep goal wheel" feature, which is an additional arc indicating a target range.
This view allows customization of various visual aspects such as colors, stroke widths, and pointer styles. It provides callbacks for tracking progress changes and touch events.
Key features:
- Two draggable pointers (bedtime and wakeup time).
- A progress arc connecting the two pointers.
- Customizable colors for pointers, progress, and background circle.
- Optional "sleep goal wheel" to display a target range.
- Haptic feedback for certain interactions.
- Callbacks for progress changes and touch events via OnCircularSeekBarChangeListener.
- Reveal animation for the progress arc.
Usage typically involves:
- Adding
SeslCircularSeekBarView
to your layout XML. - Setting attributes in XML or programmatically to customize its appearance.
- Implementing OnCircularSeekBarChangeListener to respond to user interactions.
- Optionally, using methods like setSleepGoalWheel to enable and configure the sleep goal wheel.
Types
Link copied to clipboard
interface OnCircularSeekBarChangeListener
Link copied to clipboard
class SweepGradientVariable
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setOnSeekBarChangeListener(@NonNull onCircularSeekBarChangeListener: SeslCircularSeekBarView.OnCircularSeekBarChangeListener)
Link copied to clipboard
Link copied to clipboard