B4A Library HeartLayout V1.0

HeartLayout
Version:
1
  • HeartLayout
    Fields:
    • ba As BA
    Methods:
    • AddToParent (Parent As ViewGroup, left As Int, top As Int, width As Int, height As Int)
    • 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)
    • addHeart (color As Int)
    • clearAnimation
    Properties:
    • Background As Drawable
    • Color As Int [write only]
    • Enabled As Boolean
    • Height As Int
    • Left As Int
    • Tag As Object
    • Top As Int
    • Visible As Boolean
    • Width As Int

heartlayout.gif


If you want to donate for my work building the class you can do it here:
 

Attachments

  • libHeartLayout.zip
    13.3 KB · Views: 399
  • HeartLayoutEx.zip
    11.5 KB · Views: 389

JonPM

Well-Known Member
Licensed User
Longtime User
Nice. I don't have time to test right now but can the hearts be changed to any image/shape?
 

koaunglay

Member
Licensed User
Longtime User
1. You can replace the drawabled in the ressource folder
2. You can use custom ones if you know the resID of the new drawables (maybe using android Ressources)
Hi! Can I use this lib for livewallpaper? If it can use, very very so lovely.
 
Top