B4A Library Velocimeter - dials and meters

Similar threads

B4A Library PDFium - Pdfview2
B4A Library IPCamView
B4A Library msEmoji V1.0.0
B4A Library CreditsRollView V1.0.0
B4A Tutorial [java] Custom View with Designer Support (Java library)
B4A Library SnakeView

sparxfly

Member
Licensed User
The folder fonts is inside your Files folder?
The file digit.ttf (all lowercase) is inside the folder Files\fonts\?
What Version of b4a yyou are using?
Which is the targetsdk set to?????
Which Android.jar (Version) you are using?
project_directory/Files/fonts/digit.TTF < changed to .ttf and all good!
Interesting that in debug mode this was not an issue?
Thanks anyway!

Edit- I suspect the issue is that Windows ignores case, but Android is more fussy.
Anyway, problem solved- thanks.
 
Last edited:

aidymp

Active Member
Licensed User
Just trying this now, but I have a few problems! (as always lol)

1st problem is (and this may be me) the control does not seem to be centred, as in if i make one 30%x wide, and place it at position (50%x-15%x) its not centred? I wanted to add 3 in a row!

2nd problem, I was hoping to change the BottomVelocimeterColor As Int, on the fly, but any change does nothing, but with the method .update the app crashes. with

** Activity (main) Resume **
java.lang.NullPointerException: Attempt to read from field 'float android.graphics.RectF.left' on a null object reference
at android.graphics.Canvas.drawArc(Canvas.java:1197)
at com.github.glomadrian.velocimeterlibrary.painter.progress.ProgressVelocimeterPainterImp.draw(ProgressVelocimeterPainterImp.java:65)
at com.github.glomadrian.velocimeterlibrary.VelocimeterView.onDraw(VelocimeterView.java:172)
at android.view.View.draw(View.java:16178)
at android.view.View.buildDrawingCacheImpl(View.java:15474)
at android.view.View.buildDrawingCache(View.java:15335)
at android.view.View.draw(View.java:15941)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.draw(View.java:16181)
at android.view.View.updateDisplayListIfDirty(View.java:15174)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
at android.view.View.updateDisplayListIfDirty(View.java:15134)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
at android.view.View.updateDisplayListIfDirty(View.java:15134)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3593)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3573)
at android.view.View.updateDisplayListIfDirty(View.java:15134)
at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:281)
at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:287)
at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:322)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2615)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2434)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2067)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:606)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

is it not possible? and are my calculations wrong? (probobly!)

Thanks

Aidy
 
Top