B4A Library [B4X] [XUI] SD XUIView2

Star-Dust

Expert
Licensed User
SD_XUIView2

Author:
Star-Dust
Version: 0.09
  • B4XRangeSeekBar
    • Events:
      • ChangeValue (MinValue As Float, MaxValue As Float)
    • Fields:
      • Tag As Object
    • Functions:
      • AddToParent (PanelToAdd As B4XView, Left As Int, Top As Int, Width As Int, Height As Int) As String
      • BringToFront As String
      • Class_Globals As String
      • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
        Base type must be Object
      • GetBase As Panel
      • GetView (Index As Int) As B4XView
      • Initialize (Callback As Object, EventName As String) As String
      • IsInitialized As Boolean
        Verifica se l'oggetto sia stato inizializzato.
      • RemoveViewFromParent As String
      • RequestFocus As String
      • ReSetEvent (Callback As Object, EventName As String) As String
      • Rotate (AngleX As Float, AngleY As Float, AngleZ As Float) As String
      • SendToBack As String
      • SetColorBase (C As Int) As String
      • SetColorLevel (C As Int) As String
      • SetColorStick (C As Int) As String
      • Snapshot As B4XView
    • Properties:
      • Enable As Boolean
      • Height As Int
      • Left As Int
      • MaxValue As Float
      • MinValue As Float
      • Top As Int
      • Visible As Boolean
      • Width As Int
  • B4XTrimmer
    • Events:
      • ChangeValue (Value As Int)
      • TouchRelease (Value As Int)
    • Fields:
      • 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 Panel
      • Initialize (Callback As Object, EventName As String) As String
      • IsInitialized As Boolean
        Verifica se l'oggetto sia stato inizializzato.
      • Rotate (AngleX As Float, AngleY As Float, AngleZ As Float) As String
    • Properties:
      • Value As Int
  • xGridListView
    • Events:
      • ItemClick (Text As String, Value As Object)
      • ItemLongClick (Text As String, Value As Object)
    • Fields:
      • HeightItem As Int
      • InfoFont As B4XFont
      • InfoTextColor As Int
      • SecondLineAlignment As String
      • SecondLineColor As Int
      • SecondLineFont As B4XFont
      • StepItem As Int
      • TextAlignment As String
      • TextColor As Int
      • TextFont As B4XFont
      • TimeAnimation As Int
      • WidthItem As Int
    • Functions:
      • Add (Text As String, SecondLine As String, Info As String, ID As Object) As String
      • AddWithImage (Text As String, SecondLine As String, Info As String, ID As Object, Image As B4XBitmap, ImageToRight As Boolean) As String
      • Class_Globals As String
      • Clear As String
      • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
        Base type must be Object
      • Initialize (Callback As Object, EventName As String) As String
      • InsertAt (Position As Int, Text As String, Info As String, ID As Object) As String
      • InsertWithImageAt (Position As Int, Text As String, SecondLine As String, Info As String, ID As Object, Image As B4XBitmap, ImageToRight As Boolean) As String
      • Invalidate As String
      • IsInitialized As Boolean
        Verifica se l'oggetto sia stato inizializzato.
      • removeAt (Pos As Int) As String
      • SetCol (N As Int) As String
      • setInfo (ID As Object, Text As String) As String
      • setSecondLine (ID As Object, Text As String) As String
      • setSingleItemColorBackground (ID As Object, Color As Int) As String
        Gb.GradientToView(P,Array As Int(ItemBackgroundColor,FindLighterOrDarkerColor(ItemBackgroundColor,1.15)),"TL_BR",ItemBorderColor,BorderWidth,RoundedItem)
      • setText (ID As Object, Text As String) As String
    • Properties:
      • Base As B4XView [read only]
      • ElementBackgroundColor As Int
      • Height As Int
      • ItemCornerRadius As Int
      • ItemCornerWidth As Int
      • ItemHeight As Int
      • ItemWidth As Int
      • Left As Int
      • MaxCol As Int [read only]
      • Size As Int [read only]
      • Tag As Object
      • Top As Int
      • Width As Int
      • WidthbetweenItem As Int
  • xListView
    • Events:
      • ItemClick (Text As String, Value As Object)
      • ItemLongClick (Text As String, Value As Object)
    • Fields:
      • HeightItem As Int
      • InfoFont As B4XFont
      • InfoTextColor As Int
      • SecondLineAlignment As String
      • SecondLineColor As Int
      • SecondLineFont As B4XFont
      • StepItem As Int
      • TextAlignment As String
      • TextColor As Int
      • TextFont As B4XFont
      • TimeAnimation As Int
    • Functions:
      • Add (Text As String, SecondLine As String, Info As String, ID As Object) As String
      • AddWithImage (Text As String, SecondLine As String, Info As String, ID As Object, Image As B4XBitmap, ImageToRight As Boolean) As String
      • Class_Globals As String
      • Clear As String
      • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
        Base type must be Object
      • Initialize (Callback As Object, EventName As String) As String
      • InsertAt (Position As Int, Text As String, Info As String, ID As Object) As String
      • InsertWithImageAt (Position As Int, Text As String, SecondLine As String, Info As String, ID As Object, Image As B4XBitmap, ImageToRight As Boolean) As String
      • Invalidate As String
      • IsInitialized As Boolean
        Verifica se l'oggetto sia stato inizializzato.
      • removeAt (Pos As Int) As String
    • Properties:
      • Base As B4XView [read only]
      • Height As Int
      • ItemCornerRadius As Int
      • ItemCornerWidth As Int
      • ItemHeight As Int
      • Left As Int
      • Size As Int [read only]
      • Tag As Object
      • Top As Int
      • Width As Int
      • WidthbetweenItem As Int

Video1.gif
Video2.gif
Video5.gif
 

Attachments

Last edited:

Star-Dust

Expert
Licensed User
Hmm, this can be adapted for time, you know in between X and y, let's say 13:00 and 15:50 within a 24 hours clock.

Nice one...
Also to establish a price range. As on Ebay, from a minimum to a maximum.
 

Star-Dust

Expert
Licensed User
Update rel 0.02
I added the Trimmer view (which was previously in the XUIView library)
Img1.png
 

ykucuk

Well-Known Member
Licensed User
Hello,

is it possible to set colors, min or max value by code (B4XRangeSeekBar)?
is it possible make round bigger a bit ? (B4XRangeSeekBar)?
 

Star-Dust

Expert
Licensed User
Hello,

is it possible to set colors, min or max value by code (B4XRangeSeekBar)?
Yes, in the 0.02 version these properties were not seen because of a small bug that was fixed at 0.03
is it possible make round bigger a bit ? (B4XRangeSeekBar)?
No, the dimensions are fixed
 

james_sgp

Active Member
Licensed User
Is there a way to remove the dots on the trimmer, as I want to set it to 50% and have +/- adjustments?
 

Star-Dust

Expert
Licensed User
Is there a way to remove the dots on the trimmer, as I want to set it to 50% and have +/- adjustments?
I'm sorry it's not possible
 

Star-Dust

Expert
Licensed User
update 0.08
  • Add Base Property on xListView
  • Slight gradient effect in each menu panel
 

Star-Dust

Expert
Licensed User
I'll be adding a new view to the library soon.

A ListView that divides items into multiple columns of a predetermined width by design or code. Also the possibility to change the background of a single element of the list. It is always a ListView because it scrolls only vertically, but more elements will be arranged per row

As well as some xListView bug fixes

1619342298452.png
 
Last edited:

Star-Dust

Expert
Licensed User
Update rel. 0.09
  • Fix BUGS xListView
  • add xGridListView class
Video5.gif
 
Top