B4A Library FlyTextView

Discussion in 'Additional libraries, classes and official updates' started by DonManfred, Aug 5, 2015.

  1. DonManfred

    DonManfred Expert Licensed User

    This is a wrapper for this github project.

    FlyTextView
    Version:
    1
    • FlyTxtView
      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)
      • init
      • startAnimation
      Properties:
      • Animation As Animation [write only]
      • Background As Drawable
      • Color As Int [write only]
      • Enabled As Boolean
      • Height As Int
      • Left As Int
      • Tag As Object
      • TextColor As Int [write only]
      • TextSize As Int [write only]
      • Texts As String [write only]
      • Top As Int
      • Visible As Boolean
      • Width As Int

    Code:
    Sub Globals
        
    'These global variables will be redeclared each time the activity is created.
        'These variables can only be accessed from this module.
        Private ftv1 As FlyTxtView
        
    Private Button1 As Button
    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")
        ftv1.init
        ftv1.TextColor = 
    Colors.Green
        ftv1.TextSize = 
    30

        ftv1.Texts = 
    "Hello B4A Community! I´m prod to present you this new nice view. Have fun with it. Best regards, Manfred a.k.a. DonManfred            "
    End Sub
     

    Attached Files:

    Mashiane, GudEvil, koaunglay and 8 others like this.
  2. walterf25

    walterf25 Well-Known Member Licensed User

    haha you beat me to it, i saw this today and was going to wrap it, but now i don't have to. Good Job!
    Walter
     
    DonManfred likes this.
  3. ArminKH

    ArminKH Well-Known Member

  4. somed3v3loper

    somed3v3loper Well-Known Member Licensed User

    No , you are not prod :p You should be proud of yourself .
    Glad to see you releasing libs again :)
     
  5. DonManfred

    DonManfred Expert Licensed User

    oups [MrSpelling] :D

    I am :)

    I was busy building a wrapper for a Payment-system for a customer...
    Now i´m back :)
     
    somed3v3loper likes this.
  6. PoleStar

    PoleStar Member Licensed User

    Thanks for share this library ;)
    The library has a problem...
    this library does not support Arabic language :)
    There is a way to solve this problem?
    My text is: العالم في خطر

    problem.PNG
     
    mshafiee110 likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice