B4A Library CrossView

The attached project wraps this Github project. The library files are in the /files folder of the B4A project. Copy them to your additional library folder. Posting the following:
1. B4A project
2. Java Source code

cross_btn_2.gif

pic1.png


crossview
Author:
Johan Schoeman
Version: 1
  • CrossView
    Fields:
    • ba As BA
    Methods:
    • 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)
    • setCross_1
      Transition to "X"
    • setPlus_1
      Transition to "+"
    • toggle_1
      Tell this view to switch states from cross to plus, or back, using the default animation duration.
      Return type: @return:an integer flag that represents the new state after toggling.
      This will be either {@link #FLAG_STATE_PLUS} or {@link #FLAG_STATE_CROSS}
    Properties:
    • Background As Drawable
    • Color As Int [write only]
    • CrossAnimationDuration As Long [write only]
    • CrossColor As Int [write only]
    • Cross_2 As Long [write only]
      Transition to "X" over the given animation duration
    • Enabled As Boolean
    • Height As Int
    • Left As Int
    • Plus_2 As Long [write only]
      Transition to "+" over the given animation duration
    • StrokeWidth As Float [write only]
    • Tag As Object
    • Top As Int
    • Visible As Boolean
    • Width As Int
    • toggle_2 As Long [write only]
      Tell this view to switch states from cross to plus, or back.
 

Attachments

  • crossview.zip
    18.9 KB · Views: 282
  • b4aCrossView.zip
    23.7 KB · Views: 286
Top