B4A Library [B4X] [XUI] AS RoundSlider

I took the original RoundSlider code from @Erel and modified it to create a new view.
Still, it was a very big challenge, since I've never done anything with circles before.

I spend a lot of time in creating views, like this and to create a high quality view cost a lot of time. If you want to support me and further views, then you can do it here by Paypal or with a coffee. :)

OQbzi6fhxXKQEMvXdLf55Is8QJ5zEjqr93Hg7SSoVBjWFSSqy5.jpeg
v2u5y7JpLEaa62j5jVKaX2penfb4KJrUX4kyWCHsPsRM5SDe0k.jpeg
ezgif.com-gif-maker (2).gif


ASRoundSlider
Author: Alexander Stolte
Version: 1.00

  • ASRoundSlider
    • Events:
      • ValueChanged (Value As Int)
    • Fields:
      • mBase As B4XView
      • Tag As Object
    • Functions:
      • Class_Globals As String
      • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
        Base type must be Object
      • Draw As String
        Draws the view new
      • FontToBitmap (text As String, IsMaterialIcons As Boolean, FontSize As Float, color As Int) As B4XBitmap
      • getInnerCircleColor As Int
        Gets or sets the Inner Circle Color
      • getReachedColor As Int
        Gets or sets the Reached Color
      • getStrokeWidth As Int
        Gets or sets the Stroke Width
      • getThumbBorderColor As Int
        Gets or sets the Thumb Border Color
      • getThumbIcon As B4XBitmap
        Gets or sets the Thumb Icon
      • getThumbInnerColor As Int
        Gets or sets the Thumb Inner Color
      • getThumbView As B4XView
      • getUnreachedColor As Int
        Gets or sets the Unreached Color
      • getValue As Int
      • Initialize (Callback As Object, EventName As String) As String
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • setInnerCircleColor (Color As Int) As String
      • setReachedColor (Color As Int) As String
      • setStrokeWidth (Width As Int) As String
      • setThumbBorderColor (Color As Int) As String
      • setThumbIcon (Icon As B4XBitmap) As String
      • setThumbInnerColor (Color As Int) As String
      • setUnreachedColor (Color As Int) As String
      • setValue (v As Int) As String
        Gets or sets the value
    • Properties:
      • InnerCircleColor As Int
        Gets or sets the Inner Circle Color
      • ReachedColor As Int
        Gets or sets the Reached Color
      • StrokeWidth As Int
        Gets or sets the Stroke Width
      • ThumbBorderColor As Int
        Gets or sets the Thumb Border Color
      • ThumbIcon As B4XBitmap
        Gets or sets the Thumb Icon
      • ThumbInnerColor As Int
        Gets or sets the Thumb Inner Color
      • ThumbView As B4XView [read only]
      • UnreachedColor As Int
        Gets or sets the Unreached Color
      • Value As Int
        Gets or sets the value
Changelog
  • 1.00
    • Release
  • 1.01
    • Add get and set MinValue
    • Add get and set MaxValue
    • Add Icon Gap
Have Fun :)
 

Attachments

  • AS RoundSlider Example.zip
    178.4 KB · Views: 404
  • ASRoundSlider.b4xlib
    3.2 KB · Views: 387
Last edited:
Top