B4A Library VectorCompat (MorphButton)

This is a wrap for this Github project.

VectorCompat
Author:
DonManfred (wrapper)
Version: 1
  • MorphButton
    Events:
    • oncheckedchanged (checked As Boolean)
    • onstatechanged (changedTo As Object, animated As Boolean)
    Fields:
    • ba As BA
    Methods:
    • BringToFront
    • DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
    • GetApplicationDrawableID (DrawableName As String) As Int
      Get a Drawable from the Application Resources.
      Returns Null if the Drawable is not found.
    • 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)
    • invalidateDrawable (dr As Drawable)
    • jumpDrawablesToCurrentState
    • refreshDrawableState
    • setBackgroundColorFilter (color As Int, mode As Mode)
    • setForegroundColorFilter (color As Int, mode As Mode)
    • toggle
    Properties:
    • Background As Drawable
    • BackgroundDrawable As Drawable [write only]
    • BackgroundTintList As ColorStateList
    • BackgroundTintMode As Mode
    • Checked As Boolean [write only]
    • Color As Int [write only]
    • Enabled As Boolean
    • EndDrawable As String [write only]
    • EndDrawable2 As Drawable [write only]
    • ForegroundTintList As ColorStateList
    • ForegroundTintMode As Mode
    • Height As Int
    • Left As Int
    • MorphStates() As MorphState [read only]
    • Parent As Object [read only]
    • ScaleType As ScaleType
      Controls how the image should be resized or moved to match the size
      of this ImageView.
    • ScaleTypes() As ScaleType [read only]
    • Selected As Boolean [write only]
    • StartDrawable As String [write only]
    • StartDrawable2 As Drawable [write only]
    • State As MorphState
      Same as {@link MorphButton#setState(MorphButton.MorphState, boolean)} with no animation
    • StateAnimated As MorphState [write only]
      Choose button state
    • Tag As Object
    • TintModes() As Mode [read only]
    • Top As Int
    • Visible As Boolean
    • Width As Int

Requirements:
- B4A 6+
- Your App needs to be Appcompat compatible (AppCompat must be activated and you need to have Appcompat theme)

Installation:
- Copy all three files of the Library-ZIP to your additional libs folder
- Make note of the additional res folder inside the Example-ZIP
 

Attachments

  • VectorCompatV1.0.zip
    87.6 KB · Views: 229
  • VectorCompatEx.zip
    13.4 KB · Views: 199
Top