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:
AMButton_B4A.gif


B4J:
AMButton_B4J.gif


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: 318
  • Example Project.zip
    14.5 KB · Views: 290
  • AMButton.bas
    6.3 KB · Views: 275
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:
View attachment 117960

B4J:
View attachment 117959

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 ;)
I do no have a particular use for it right now but those are lovely buttons. Really nice.
 
Top