B4A Library Lock9View V1.0.2

DonManfred

Expert
Licensed User
Lock9View
Version:
1.02
  • Lock9View
    Events:
    • onFinish (password As String)
    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)
    • refresh
    Properties:
    • Background As Drawable
    • Color As Int [write only]
    • Enabled As Boolean
    • Height As Int
    • Left As Int
    • LineColor As Int
      Get/Set the LineColor
    • LineWidth As Float
      Get/Set the LineWidth
    • NodeOnSrc As Drawable
      Get/Set the highlighted NodeSource drawable
    • NodeSrc As Drawable
      Get/Set the normal NodeSource drawable
    • Tag As Object
    • Top As Int
    • Visible As Boolean
    • Width As Int

This library is Donationware. You can download the library, you can test the library. But if you want to USE the library in your App you need to Donate for it.
Please click here to donate (You can donate any amount you want to donate for the library (or my work) :)




B4X:
Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.

    Private lock9 As Lock9View
    Private locked As Boolean = True
    Private btnLock As Button
End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.LoadLayout("Layout1")
    lock9.LineColor = Colors.White
    lock9.LineWidth = 5dip
   
End Sub
Sub lock9_onFinish(password As String)
    Log($"lock9_onFinish(${password})"$)
    If password = "123698745" Then
        lock9.Visible = False
        locked = False       
    End If
End Sub
Sub Activity_Resume
    Log("Resume("&locked&")")
    If locked = True Then
        lock9.Visible = True
        lock9.refresh
        Activity.Invalidate
    End If
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub btnLock_Click
    locked = True
    lock9.Visible = True
    lock9.refresh
End Sub
 

Attachments

scsjc

Well-Known Member
Licensed User
Hello DonManfred,
again i test your librarys (very good work...really)

this library work perfectly on ANDROID 5.1 LOLLIPOP, but i try on android 2.3 don't work..(not message error not display)
can you tellme if possible work in 2.3

thanks a lot.
juan carlos
 

ArminKH

Well-Known Member
Hello DonManfred,
again i test your librarys (very good work...really)

this library work perfectly on ANDROID 5.1 LOLLIPOP, but i try on android 2.3 don't work..(not message error not display)
can you tellme if possible work in 2.3

thanks a lot.
juan carlos
what is your compile api?one suggestion is compile your project with api 10 to work on android 2.3
 

tcgoh

Active Member
Licensed User
Hi,

I had download you lock9viewv1.0.2 for testing. But I am get error "system.outofmemeroyexception"!!

I am only running on basic4android V3.0 only. Do you require Ver 5.0 and above to work?

Thanks
 
Top