B4A Library NumericEdittext

This is a wrap for this github project.

Requirement:
B4A 6+ as the lib is using an aar

NumericEdittext
Author:
DonManfred (wrapper)
Version: 1
  • NumericEditText
    Events:
    • onchanged (param As Double)
    Fields:
    • ba As BA
    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)
    • clear
      Clear text field and replace it with default value set in {@link #setDefaultNumericValue} if
      any
    • setDefaultNumericValue (defaultNumericValue As Double, defaultNumericFormat As String)
      Set default numeric value and how it should be displayed, this value will be used if
      {@link #clear} is called
      defaultNumericValue: numeric value
      defaultNumericFormat: display format for numeric value
    Properties:
    • Background As Drawable
    • Color As Int [write only]
    • Enabled As Boolean
    • Height As Int
    • Left As Int
    • NumericValue As Double [read only]
      Return numeric value repesented by the text field
    • Parent As Object [read only]
    • Tag As Object
    • Top As Int
    • Visible As Boolean
    • Width As Int

sample.gif
 

Attachments

  • NumericEdittextEx.zip
    7.8 KB · Views: 532
  • NumericEdittextV1.0.zip
    9.4 KB · Views: 530
Last edited:

MarcoRome

Expert
Licensed User
Longtime User
Hey Don. You came back to develop a lot the great libraries :)
Thank you for your hard work.
:):)
 

gdeppi

Member
Licensed User
Longtime User
Hi @DonManfred,

I tested NumericEdittext, but it don't fire the onchanged event.

Moreover it don't check the default system decimal numbers, there is a way to manual set the max decimal numbers?

Thank You and best Regards,

Giuseppe
 
Top