B4A Library GoodView

A wrapper for this library https://github.com/venshine/GoodView


screenshot-gif.47740



GoodView
Author:
SMM
Version: 0.01
  • GoodView
    Methods:
    • Initialize
    • IsInitialized As Boolean
    • good (view As View, text As String)
    • reset
    • setAlpha (fromAlpha As Float, toAlpha As Float)
    • setTextInfo (view As View, text As String, textColor As Int, textSize As Int)
    • show (view As View)
    Properties:
    • Distance As Int [write only]
    • Duration As Int [write only]
    • Image As String [write only]
    • Text As String [write only]
    • TextColor As Int [write only]
    • TextSize As Int [write only]



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 GoodView
   Dim buton As Button

End Sub

Sub Activity_Create(FirstTime As Boolean)
    buton.Initialize("buton")
    buton.Text="Like"
    Activity.AddView(buton,10dip,150dip,90dip,90dip)
 
      demo.Initialize
 
 
End Sub
Sub buton_click
   'like below is the name of a drawable
    demo.Image="like"
    demo.show(Sender)
 
End Sub
 

Attachments

  • GoodView.zip
    6.2 KB · Views: 205
  • screenshot.gif
    screenshot.gif
    27.2 KB · Views: 532
Last edited:
Top