Customize Slider Colors: Right, Left & Thumb.
Events that fire when the thumb is released,
when it reaches the maximum value,
and when it reaches the minimum value.
Values can be decimal or integer.
The gif shows the default values, which are 0 to 100 in increments of 1.
InitializeSeekBar
SetSliderRange
Sets the range and increment of the Slider.
- Values can be with decimal or integer.
GetCurrentSliderValue
GetMinValue
GetMaxValue
SetSliderLeftColor
SetSliderRightColor
SetSliderThumbColor
SetSliderThumbPosition
Sets the position of the thumb.
SliderValueChanged
SliderStopTracking
Event triggered when the slider stops being tracked.
SliderMaxValueSet
Event triggered when the maximum value of the slider is set.
SliderMinValueSet
Event triggered when the minimum value of the slider is set.
Update:
-
Removed 2 functions that were not needed:
SetStartValueLabel
andSetCurrentValueLabel
-
Centered the Slider, since not using the 2 functions I mentioned, the slider was at the top.
Changed the default value when not using theSetSliderRange
function:- min: 0
max: 100
increment: 1
- min: 0
Note:
I have changed the extension created in Niotron
to Fast
, now it is updated with the SDK and in Java 11.
minSdk: 21
maxSdk: 34
JDK: 11
Created with Fast. v2.3.0
fast-cli
aia project:
Slider.aia (14.2 KB)
Extension: Version 1.0.1
.
joejsanz.joedevslider.aix (11.7 KB)
Thanks.