This is a wrap for this github project.
V1.5 needs B4A 6+ as the resources are now inside an aar.
ScratchView
Author: DonManfred (wrapper)
Version: 1.5
V1.5 needs B4A 6+ as the resources are now inside an aar.
ScratchView
Author: DonManfred (wrapper)
Version: 1.5
- ScratchImageView
Events:- PercentRevealed (percent As Double)
- onRevealed ( As )
- onScratching (Scratched As Boolean)
- ba As BA
- 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)
- clear
clears the scratch area to reveal the hidden image. - isRevealed As Boolean
- setEraserMode
- Background As Drawable
- Color As Int
- Enabled As Boolean
- ErasePaint As Paint [read only]
- Height As Int
- ImageBounds() As Int [read only]
- ImageDrawable As Drawable [write only]
- ImageResource As String [write only]
- Left As Int
- Parent As Object [read only]
- StrokeWidth As Int [write only]
Set the strokes width based on the parameter multiplier. - Tag As Object
- Top As Int
- Visible As Boolean
- Width As Int
- ScratchTextView
Events:- PercentRevealed (percent As Double)
- onRevealed ( As )
- onScratching (Scratched As Boolean)
- ba As BA
- 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)
- isRevealed As Boolean
- reveal
Reveals the hidden text by erasing the scratch area.
- Background As Drawable
- Color As Int
- Enabled As Boolean
- Height As Int
- Left As Int
- Parent As Object [read only]
- StrokeWidth As Int [write only]
Set the strokes width based on the parameter multiplier. - Tag As Object
- Text As String
- TextColor As Int [write only]
- TextColor2 As ColorStateList
- TextSize As Float
- Top As Int
- Visible As Boolean
- Width As Int
Attachments
Last edited: