Android Question Looking for B4J Type Slider with Number Scale

rwblinn

Well-Known Member
Licensed User
Longtime User
Looking for a B4A slider, like below picture, which is a slider created with B4J having additional properties set via a JavaObject - for the number scale.
Searched for a kind of B4A custom seekbar, but not found a (simple) solution.
Any guidance appreciated.



B4J Code to set additional slider view properties which are not provided by the B4J Visual Designer:
B4X:
    'Assign a JavaObject as Slider
    Dim joSlider As JavaObject = SliderDlgThermostatSetpoint
    joSlider.RunMethod("setBlockIncrement", Array(1.0))        ' Must be double
    joSlider.RunMethod("setMajorTickUnit", Array(5.0))         ' Must be double
    joSlider.RunMethod("setMinorTickCount", Array(10))        ' Must be Int
    joSlider.RunMethod("setShowTickLabels", Array(True))
    joSlider.RunMethod("setShowTickMarks", Array(True))
    joSlider.RunMethod("setValueChanging", Array(True))
    joSlider.RunMethod("setSnapToTicks", Array(True))
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…