Lock9View
Version: 1.02
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)
Version: 1.02
- Lock9View
Events:- onFinish (password As String)
- ba As BA
- 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
- 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