Android Example Square Progress Bar

Discussion in 'Tutorials & Examples' started by Johan Schoeman, Jul 19, 2015.

  1. Johan Schoeman

    Johan Schoeman Expert Licensed User

    It wraps part of this Github project. Library files are in the /files folder of the B4A project. Copy them to your additional library folder. Posting the zipped B4A project as well as the Java source code. It fades the pics in as the progress indictors run around the pics. You can also choose the pics to be faded in with a Grayscale version of the pics.

    Amend/change it what ever way you like.


    The lib as it stands at present:

    Johan Schoeman
    Version: 1
    • SquareProgressBar
      • ba As BA
      • 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)
      • isCenterline As Boolean
      • isClearOnHundred As Boolean
      • isIndeterminate As Boolean
      • isOpacity As Boolean
      • isOutline As Boolean
      • isShowProgress As Boolean
      • isStartline As Boolean
      • setColorRGB_1 (r As Int, g As Int, b As Int)
      • setOpacity_2 (opacity As Boolean, isFadingOnProgress As Boolean)
      • Background As Drawable
      • BorderWidth As Int [write only]
      • ClearOnHundred As Boolean [write only]
      • Color As Int [write only]
      • ColorRGB_2 As Int [write only]
      • Color_1 As String [write only]
      • DrawCenterline As Boolean [write only]
      • DrawOutline As Boolean [write only]
      • DrawStartline As Boolean [write only]
      • Enabled As Boolean
      • Height As Int
      • ImageBitmap As Bitmap [write only]
      • ImageGrayscale As Boolean [write only]
      • Indeterminate As Boolean [write only]
      • Left As Int
      • Opacity_1 As Boolean [write only]
      • Progress As Double [write only]
      • ShowProgress As Boolean [write only]
      • Tag As Object
      • Top As Int
      • Visible As Boolean
      • Width As Int

    Attached Files:

    Last edited: Jul 19, 2015
    Ohanian, LucaMs, elyas and 8 others like this.
  2. ArminKH

    ArminKH Well-Known Member

    thank u ;)
    Johan Schoeman likes this.
  3. DonManfred

    DonManfred Expert Licensed User

    Really nice one, Johan! I tried to wrap this lib earlier but i got stuck...

    Well done

    Thank you for sharing!
    Johan Schoeman likes this.
  4. LucaMs

    LucaMs Expert Licensed User

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice