B4A Library CircularProgress

This is a wrap for this Github project.




CircularProgress
Author:
DonManfred (wrapper)
Version: 1
  • CircleProgressBar
    Methods:
    • 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)
    • adjustAlpha (color As Int, factor As Float) As Int
      Transparent the given color by the factor
      The more the factor closer to zero the more the color gets transparent
      color: The color to transparent
      factor: 1.0f to 0.0f
      Return type: @return:int - A transplanted color
    • lightenColor (color As Int, factor As Float) As Int
      Lighten the given color by the factor
      color: The color to lighten
      factor: 0 to 4
      Return type: @return:A brighter color
    Properties:
    • Background As Drawable
    • Color As Int
    • Enabled As Boolean
    • Height As Int
    • Left As Int
    • Max As Int
    • Min As Int
    • Padding()() As Int
    • Parent As Object [read only]
    • Progress As Float
    • ProgressWithAnimation As Float [write only]
      Set the progress with an animation.
      Note that the {@link android.animation.ObjectAnimator} Class automatically set the progress
      so don't call the {@link CircleProgressBar#setProgress(float)} directly within this method.
    • StrokeWidth As Float
    • Tag As Object
    • Top As Int
    • Visible As Boolean
    • Width As Int
 

Attachments

  • CircularProgressEx.zip
    7.8 KB · Views: 603
  • CircularProgressV1.0.zip
    6.6 KB · Views: 560
  • res.CircularProgress.zip
    1.7 KB · Views: 548

Rochow

Member
Licensed User
Longtime User
With B4A 6.8, AppCompat 3.52, DesignSupport 2.32, I get this error:

B4A version: 6.80
Parsing code. (0.01s)
Compiling code. (0.16s)
Compiling layouts code. (0.01s)
Organizing libraries. (2.16s)
Generating R file. (0.53s)
Compiling generated Java code. (2.02s)
Convert byte code - optimized dex. Error
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/objects/R$styleable;
at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
at com.android.dx.dex.file.DexFile.add(DexFile.java:161)
at com.android.dx.command.dexer.Main.processClass(Main.java:615)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:570)
at com.android.dx.command.dexer.Main.access$2(Main.java:546)
at com.android.dx.command.dexer.Main$2.processFileBytes(Main.java:514)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:170)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:537)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:449)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:236)
at com.android.dx.command.dexer.Main.run(Main.java:206)
at com.android.dx.command.dexer.Main.main(Main.java:179)
at com.android.dx.command.Main.main(Main.java:103)
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/objects/R;
at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
at com.android.dx.dex.file.DexFile.add(DexFile.java:161)
at com.android.dx.command.dexer.Main.processClass(Main.java:615)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:570)
at com.android.dx.command.dexer.Main.access$2(Main.java:546)
at com.android.dx.command.dexer.Main$2.processFileBytes(Main.java:514)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:170)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:537)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:449)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:236)
at com.android.dx.command.dexer.Main.run(Main.java:206)
at com.android.dx.command.dexer.Main.main(Main.java:179)
at com.android.dx.command.Main.main(Main.java:103)
2 errors; aborting
 

Rochow

Member
Licensed User
Longtime User
Try to add
B4X:
#MultiDex: true
to your project and compile again

Now I get this error:

B4A version: 7.01
Parsing code. (0.00s)
Compiling code. (0.07s)
Compiling layouts code. (0.04s)
Organizing libraries. (1.87s)
Generating R file. (0.56s)
Compiling generated Java code. (1.82s)
Convert byte code - optimized dex. Error
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/objects/R;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/objects/R$styleable;
2 errors; aborting
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…