TtSmoothSeekBar
A reusable smooth SeekBar control where the progress will be animated when updated.
All theme attributes used by this control are declared in com.tomtom.tools.android.core.theme
. To use this control, it is mandatory to define these attribute values.
Parameters
The display context.
The attribute set provided in the layout XML file.
The default style attribute set. The default style is tt_smoothseekbar_style
.
Constructors
Properties
Callback called when the progress level has changed due to a user interaction. The progress value is provided as a fraction in range [MINIMUM_PROGRESS_FRACTION, MAXIMUM_PROGRESS_FRACTION].
Callback called when the user starts tracking the seekbar.
Callback called when the user stops tracking the seekbar.
The time transition information which contains the start and end point, and is used for the animation.
Shows or hides a secondary progress drawable that indicates an indeterminate progress besides the determinate primary progress.
Functions
Sets the lower range of the seek bar to min. NOTE: Setting the minimal value on Android 8.1 can produce the issue where it is not possible to reach the max value on a seek bar. This issue is reported in Android Issues Tracker and can be found here. We will not fix it because there is no point of setting the minimal value in the current implementation where the fraction is tracked which can take values from 0 to 1.