B4A Library ColorSeekBar

This is a wrap for this Github project.

ColorSeekbar
Author:
DonManfred (wrapper)
Version: 1.02
  • ColorSeekBar
    Events:
    • ColorChanged (colorBarValue As Int, alphaValue As Int, color As Int)
    Fields:
    • ba As BA
    Methods:
    • AddToParent (Parent As ViewGroup, left As Int, top As Int, width As Int, height As Int)
    • BringToFront
    • DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
    • Initialize (EventName As String)
    • Invalidate
    • Invalidate2 (arg0 As Rect)
    • Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
    • IsInitialized As Boolean
    • RemoveView
    • RequestFocus As Boolean
    • SendToBack
    • SetBackgroundImage (arg0 As Bitmap)
    • SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)
    • SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
    • SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)
    • SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
    • dp2px (dpValue As Float) As Int
    • isShowAlphaBar As Boolean
    Properties:
    • AlphaBarValue As Int [write only]
    • AlphaValue As Int [read only]
    • Background As Drawable
    • BarHeight As Int
    • BarHeightPx As Int [write only]
    • BarMargin As Int
      set margin between bars
    • BarMarginPx As Int [write only]
      set margin between bars
    • Color As Int
    • ColorBarValue As Int [write only]
      Set the value of color bar, if out of bounds , it will be 0 or maxValue;
    • ColorPosition As Float [read only]
    • ColorWithAlpha As Int [read only]
    • Colors() As Int
    • Enabled As Boolean
    • Height As Int
    • Left As Int
    • MaxValue As Int
    • Parent As Object [read only]
    • ShowAlphaBar As Boolean [write only]
    • Tag As Object
    • ThumbHeight As Int
      set thumb's height by dpi
    • ThumbHeightPx As Int [write only]
      set thumb's height by pixels
    • Top As Int
    • Visible As Boolean
    • Width As Int

ColorSeekBarAnim.gif
 

Attachments

  • libColorSeekBarV1.0.0.zip
    11.7 KB · Views: 609
  • ColorSeekBarEx.zip
    9 KB · Views: 650
  • ColorSeekbarV1.02.zip
    11.7 KB · Views: 669
Last edited:

Johan Schoeman

Expert
Licensed User
Longtime User
Good job mate, but this does not work:
B4X:
ColorSB.Enabled=False
In order to disable seekbar.
Thank you for your time.
ColorSB.Enabled is a function of the CustomView and not a function of the library. It will not disable the seekbar.
 

freedom2000

Well-Known Member
Licensed User
Longtime User
HI,

I have tried this lib and it works fine.

But what I was looking for was a way to get the "pink color" of the seekbar (as in your animated Gif in the first post)

Well I just would like to change the color of a regular seekbar and I am stuck :confused:

Any help please (sorry to be a little off topic...)
 

Johan Schoeman

Expert
Licensed User
Longtime User
HI,

I have tried this lib and it works fine.

But what I was looking for was a way to get the "pink color" of the seekbar (as in your animated Gif in the first post)

Well I just would like to change the color of a regular seekbar and I am stuck :confused:

Any help please (sorry to be a little off topic...)

The pink is 0xFFFF4081. I guess the library will allow you to set it (either as a single color or via the array of colors that can be passed
 

freedom2000

Well-Known Member
Licensed User
Longtime User
I'll try again this evening !

But I am not sure that the "pink seekbar" in the first post had been achieved with this lib (look at the fuzzyness of the "thumb", they are not the same !)
 

freedom2000

Well-Known Member
Licensed User
Longtime User
Well I've just tried and I can't find a way to have a single color into this "colorseekbar".
Do I miss something ?
 

Johan Schoeman

Expert
Licensed User
Longtime User
Well I've just tried and I can't find a way to have a single color into this "colorseekbar".
Do I miss something ?
What about passing all the same color in the option that allows for passing the colors in an array? Will that not do it?
 
Top