B4A Library AutoTypingTextView

A wrapper for this https://github.com/krsticdragan/AutoTypingTextView


687474703a2f2f7777772e64726167616e6b72737469632e636f6d2f6175746f7479706574657874766965772f616c6c616e696d6174696f6e2e676966


AutoTypingTextView
Author:
SMM
Version: 0.01
  • AutoTypingTextView
    Events:
    • _click
    Fields:
    • PRECISSION_HIGH As Int
    • PRECISSION_LOW As Int
    • PRECISSION_MED As Int
    • ba As BA
    Methods:
    • BringToFront
    • 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)
    • SetTextColorAnimated (arg0 As Int, arg1 As Int)
    • SetTextSizeAnimated (arg0 As Int, arg1 As Float)
    • SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
    • setTextAutoTypingWithMistakes (text As String, precission As Int)
      Use fields PRECISSION_LOW,PRECISSION_MED or PRECISSION_HIGH for precission
    Properties:
    • Background As Drawable
    • Color As Int [write only]
    • DecryptionSpeed As Int [write only]
    • Enabled As Boolean
    • EncryptionSpeed As Int [write only]
    • Gravity As Int
    • Height As Int
    • Left As Int
    • Parent As Object [read only]
    • Tag As Object
    • Text As String
    • TextAutoTyping As String [write only]
    • TextColor As Int
    • TextSize As Float
    • Top As Int
    • Typeface As Typeface
    • TypingSpeed As Int [write only]
    • Visible As Boolean
    • Width As Int

Sample
B4X:
Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.
    Dim demo As AutoTypingTextView

End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    'Activity.LoadLayout("Layout1")


    demo.Initialize("demo")
    Activity.AddView(demo,0,0%y,100%x,100%y)
    demo.setTextAutoTypingWithMistakes("AnywhereSoftware",demo.PRECISSION_MED)
    demo.TextColor=Colors.Green

End Sub
 

Attachments

  • AutoTypingTextView.zip
    11 KB · Views: 295
Top