B4A Library [B4X] [Custom View] lmElapsedTime

Ok, I'm publishing it (remember: I have to drink coffee, so use now the link in my signature ).

You can see the description of this library in the next ("older") lines of this post.
I later added the ability to activate (/resume) /pause the counter by clicking (or tapping) on the View (it's optional, it's a property (*)).

PROPERTIES:
  • ActOnClick (*)
  • BGColor - Background color
  • BorderColor
  • BorderWidth
  • ElapsedTime
  • ElapsedTimeString
  • CornerRadius
  • FontSize
  • LabelFont
  • Paused
  • ShowMilliseconds
  • ShowHours

METHODS:
  • StartCounter
  • StopCounter
  • PauseCounter
  • ResumeCounter

EVENTS:
  • Click
  • ElapsedTimeChanged
  • StateChanged

_______________________________________________________________________________________________________________________________________________
_______________________________________________________________________________________________________________________________________________

I am undecided whether to publish this custom view or not (I am also undecided about its name). If you like it, if you find it useful.

It is a time counter or "elapsed time".

You can:
decide whether to display the milliseconds / hours numbers or not;
change the colors;
border and corners;
pause and resume.

Oops, I almost forgot something important (not done yet): the font property. Later.

java_WvxSa9drwi.gif


BTW, used for a (famous) little game created for testing (to test ChatGPT capabilities).
 

Attachments

  • lmElapsedTime.b4xlib
    3.2 KB · Views: 9
Last edited: