B4A Library MarkView V1.0.0 - Can also used as a Progress

DonManfred

Expert
Licensed User
This is a Wrapper for this Github project.

MarkView
Version:
1.0.0
  • MarkView
    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)
    • isMarkValid (mark As Int) As Boolean
      Checks whether a given mark is valid according to the current configuration
    Properties:
    • Background As Drawable
    • Color As Int [write only]
    • Enabled As Boolean
    • Height As Int
    • Left As Int
    • Mark As Int
      Returns the current mark
    • Max As Int
      Returns the highest mark this MarkView accepts
    • RingColor As Int
      Returns the color of the background ring
    • RingWidth As Float
      Returns the width of the background ring
    • StrokeColor As Int [read only]
      Returns the stroke color depending on the current mark.
      <p/>
      May return:
      - DEFAULT_STROKE_COLOR if the mark is invalid or there are no colors in mStrokeColors.
      - The color at the position of the mark in mStrokeColors if it contains the mark.
      - The last color in mStrokeColors if it doesn't contain the mark.
    • StrokeColors()() As Int
      Returns the current stroke colors array
    • StrokeWidth As Float
      Returns stroke width
    • Tag As Object
    • TextColor As Int
      Returns the current text color
    • TextSize As Float
      Returns the current text size
    • Top As Int
    • Visible As Boolean
    • Width As Int




This library is Donationware. You can download the library, you can test the library. But if you want to USE the library in your App you need to Donate for it.
Please click here to donate (You can donate any amount you want to donate for the library (or my work) :)
 

Attachments

MarcoRome

Expert
Licensed User
Sorry DonMandred ....
I posted the wrong ( and stupid ) question ... I mean
"finally is possible countdown ! "
Anyway... no problem
 

Douglas Farias

Expert
Licensed User
The example MarkViewEx.zip is with error when i run
here is the log
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:b4a.example.teste
** Activity (main) Create, isFirst = true **
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:166)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:208)
at b4a.example.teste.main._activity_create(main.java:344)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
at b4a.example.teste.main.afterFirstLayout(main.java:100)
at b4a.example.teste.main.access$100(main.java:17)
at b4a.example.teste.main$WaitForLayout.run(main.java:78)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5312)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:54)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:158)
... 16 more
Caused by: android.content.res.Resources$NotFoundException: String array resource ID #0x0
at android.content.res.Resources.getStringArray(Resources.java:502)
at tr.xip.markview.MarkView.initByAttributes(MarkView.java:100)
at tr.xip.markview.MarkView.<init>(MarkView.java:90)
at tr.xip.markview.MarkView.<init>(MarkView.java:78)
at tr.xip.markview.MarkView.<init>(MarkView.java:74)
at de.donmanfred.MarkViewWrapper._initialize(MarkViewWrapper.java:41)
... 20 more
MOTO G
 

DonManfred

Expert
Licensed User
Did you forgot to add the resources? See examplecode and the folder Resources in the example.

B4X:
#Region  Project Attributes
    #ApplicationLabel: B4A Example
    #VersionCode: 1
    #VersionName:
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: unspecified
    #CanInstallToExternalStorage: False
    #AdditionalRes: ..\Resources
#End Region
Note the #AdditionalRes command
 

Douglas Farias

Expert
Licensed User
yes, i removed because when i compile show me error #AdditionalRes: ..\Resources not found
but now i have put #AdditionalRes: ..\Resources again and works no error on compile. works fine. o_O:eek:

another question, how much i need donate to use for example 5 your libs?
 

DonManfred

Expert
Licensed User
another question, how much i need donate to use for example 5 your libs?
The Decision is up to you! Note: the more you donate the more i will like it :D

Let me say that the most people donated 10 for a library. Some have give more (up to 30) and some asks for a possible price FOR ALL my librarys. I usually answered 50 Euro for ALL (including future releases)

Again: The Decision is up to you!
 
Top