Jan 5, 2022 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. ASSectionedSlider Author: Alexander Stolte Version: 1.00 ASSectionedSlider Events: ValueChanged (Section 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 getBackgroundColor As Int getCornerRadius As Float getDividerColor As Int getDividerHeight As Float getSections As Int getSelectedSection As Int getSelectedSectionColor As Int Initialize (Callback As Object, EventName As String) As String IsInitialized As Boolean Tests whether the object has been initialized. setBackgroundColor (Color As Int) As String setCornerRadius (Radius As Float) As String setDividerColor (Color As Int) As String setDividerHeight (Height As Float) As String setSections (SectionCount As Int) As String setSelectedSection (Section As Int) As String setSelectedSectionColor (Color As Int) As String Update As String Redraws the control Properties: BackgroundColor As Int CornerRadius As Float DividerColor As Int DividerHeight As Float Sections As Int SelectedSection As Int SelectedSectionColor As Int Changelog 1.00 Release Github: github.com/StolteX/AS_SectionedSlider Have Fun Attachments AS SectionedSlider Example.zip AS SectionedSlider Example.zip 10.7 KB · Views: 727 ASSectionedSlider.b4xlib ASSectionedSlider.b4xlib 2.2 KB · Views: 692 Last edited: Feb 8, 2025 Click to expand...
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. ASSectionedSlider Author: Alexander Stolte Version: 1.00 ASSectionedSlider Events: ValueChanged (Section 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 getBackgroundColor As Int getCornerRadius As Float getDividerColor As Int getDividerHeight As Float getSections As Int getSelectedSection As Int getSelectedSectionColor As Int Initialize (Callback As Object, EventName As String) As String IsInitialized As Boolean Tests whether the object has been initialized. setBackgroundColor (Color As Int) As String setCornerRadius (Radius As Float) As String setDividerColor (Color As Int) As String setDividerHeight (Height As Float) As String setSections (SectionCount As Int) As String setSelectedSection (Section As Int) As String setSelectedSectionColor (Color As Int) As String Update As String Redraws the control Properties: BackgroundColor As Int CornerRadius As Float DividerColor As Int DividerHeight As Float Sections As Int SelectedSection As Int SelectedSectionColor As Int Changelog 1.00 Release Github: github.com/StolteX/AS_SectionedSlider Have Fun