B4A Library [B4X] [XUI] SD Selector

Video4.gif


SD_Selector
Author:
Star-Dust
Version: 0.02
  • fourSelector
    • Events:
      • ChangeValue (nSelector As Int, Index 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
      • GetBase As B4XView
      • GetItemIndex (nSelector As Int) As Int
      • GetItemValue (nSelector As Int) As String
      • Initialize (Callback As Object, EventName As String) As String
      • IsInitialized As Boolean
        Verifica se l'oggetto sia stato inizializzato.
      • SetItemIndex (nSelector As Int, Index As Int) As String
      • SetItems (nSelector As Int, ListItem As List) As String
        nSelector = 0 to 3
      • SetWheelColors (UpColor As Int, RigthColor As Int, DownColor As Int, LeftColor As Int) As String
    • Properties:
      • WheelSpeed As Int
        Wheel speed 20-90

There is no version for iOs yet
 

Attachments

  • B4JSelectorSample.zip
    2.2 KB · Views: 107
  • B4ASelectorSample.zip
    8.5 KB · Views: 109
  • SD_Selector.zip
    6.7 KB · Views: 104
  • jSD_Selector.zip
    6.8 KB · Views: 95
Last edited:

AnandGupta

Well-Known Member
Licensed User
Not a single line of description, still everyone loves it :D

The manner you can conceive something extraordinary is remarkable. 👍
Thanks.

Regards,

Anand
 

Star-Dust

Expert
Licensed User
Not a single line of description, still everyone loves it :D

The manner you can conceive something extraordinary is remarkable. 👍
Thanks.

Regards,

Anand
I've been trying to figure out an alternative to a multiple series of ComboBoxes (or spinners) for a while.

The comboBox is a very PC-related view but not always practical on mobile devices and certainly not modern. Something newer is the MiniSearchView. But I was looking for something more spectacular and that would allow a cascade of choices.

What you see is not yet what I imagined, but I have to understand how to do it. For now I am satisfied
 

Star-Dust

Expert
Licensed User
Something similar with a horizontal scroll.

ezgif.com-optimize.gif


But I don't want to put a horizontal ScorllView, I want to avoid creating the entries which are not visible. Create them dynamically as they are visible.

But I am looking for a fast method and with a concise code, as I like it. I will await the next lighting
 
Last edited:
Top