B4A Library ShowCaseView Wrapper

ShowCaseView With this lib you can capture user attention or a first run tutorial.
Version:
1
  • ShowcaseView
    Events:
    • onhide
    • onshow
  • 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)
    • Hide
      Hide's the Case
    • 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)
    • Show
      Show's the Case
    • setShowcasePosition (x As Float, y As Float)
      Set a specific position to showcase
      x:
      y:
  • Properties:
    • Background As Drawable
    • Color As Int [write only]
    • Enabled As Boolean
    • Height As Int
    • Left As Int
    • ShotType As Int [write only]
      Set the shot method of the showcase - only once or no limit
    • ShowcaseView As View [write only]
      Set the view to showcase
    • Tag As Object
    • Top As Int
    • Visible As Boolean
    • Width As Int
    • blockTouch As Boolean [write only]
      Decide whether touches outside the showcased circle should be ignored or
      not
1.png
3.png
4.png
 

Attachments

  • 2.png
    2.png
    24.1 KB · Views: 271
  • 5.png
    5.png
    98.3 KB · Views: 278
  • ShowCaseWrapper.zip
    11.4 KB · Views: 359
  • LibExample -SC.zip
    220.1 KB · Views: 378
Last edited:

jahswant

Well-Known Member
Licensed User
Longtime User
Let me reupload with res files :
1 minute later : Find attached the working example.
 

Attachments

  • LibExample -SC.zip
    220.1 KB · Views: 307
Last edited:

MarcoRome

Expert
Licensed User
Longtime User
Good now work.

in your code maybe forget this line:

B4X:
sc.SendToBack

B4X:
Sub btnhere_Click
  If btnhere.text = "Show" Then
   sc.RemoveView
   Activity.AddView(sc,0,0,100%X,100%Y)
   sc.ShowcaseView = ListView1
   sc.Show
   sc.SendToBack '<------------ This 
  
   btnhere.Text = "Hide"
   Else
    sc.Hide
    btnhere.Text = "Show"
  End If
End Sub

Thank you for this library ;)
 

jahswant

Well-Known Member
Licensed User
Longtime User
Use
B4X:
sc.blockTouch = True
Or
B4X:
sc.blockTouch = False
It will solve your issue.
 
Last edited:

hibrid0

Active Member
Licensed User
Longtime User
Very nice library! very useful to make a wizard on the first run!!
I add the word "Wizard" if I lose this library will helpme to found it.
I see other wizard class, but I like this.

I feel is not complete, need to add some text to explain and not see option.

Thanks a lot
 
Last edited:

jahswant

Well-Known Member
Licensed User
Longtime User
Very nice library! very useful to make a wizard on the first run!!
I add the word "Wizard" if I lose this library will helpme to found it.
I see other wizard class, but I like this.

I feel is not complete, need to add some text to explain and not see option.

Thanks a lot
Sure.
 
Top