B4A Library [B4X] [XUI Views] AMButton - New flexible and attractive button

Hello,
I have made a new styled button

Features
  • cross-platform compatible
  • a good animation
  • Changeable values
  • custom values

Tested in
  • B4A
  • B4J
* I don't have tested it with B4I, but it should work *

B4A:


B4J:


AMButton
Author: AmirMK82
Version: 1.00

  • AMButton
    • Events:
      • Click
    • Fields:
      • Tag As Object
      • Animation_Duration As Float
      • Animation_Gravity As String
      • Animation_Gravitys() As Float
      • OnPressedTextSise As Float
      • Duration_Slow As Float
      • Duration_Normal As Float
      • Duration_Fast As Float
      • Gravity_LeftAndRight As String
      • Gravity_TopAndBottom As String
      • Gravity_Both As String
      • Enabled As Boolean
    • Functions:
      • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
      • Initialize (Callback As Object, EventName As String) As String
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • SetCustomAnimationGravity (left As Float, top As Float, right As Float, bottom As Float)
    • Properties:
      • mBase As B4XView
      • mLbl As B4XView

Help Me Make It Better
Be Happy
 

Attachments

  • AMButton.b4xlib
    2.1 KB · Views: 532
  • Example Project.zip
    14.5 KB · Views: 491
  • AMButton.bas
    6.3 KB · Views: 491

emexes

Expert
Licensed User
Longtime User
Thanks, also It will be in the next update
Lol best not to say yes too quickly, otherwise next they'll be asking for video. ?

Although a button that explodes or evaporates when you press it would be sometimes useful and certainly funny.
 

Hanz

Active Member
beautiful and I wish I would see button & label which have slices on top left and right bottom in the future.
 
I do no have a particular use for it right now but those are lovely buttons. Really nice.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…