B4A Library ShowCaseView Wrapper

Similar threads

B4A Library IPCamView
B4A Library PDFium - Pdfview2
B4A Library msEmoji V1.0.0
B4A Tutorial [java] Custom View with Designer Support (Java library)
B4A Library CreditsRollView V1.0.0
B4A Library VRCalendarView

jahswani

Well-Known Member
Licensed User
ShowCaseView With this lib you can capture user attention or a first run tutorial.
Author:
Fodouop Jahswant
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

MarcoRome

Expert
Licensed 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 ;)
 

hibrid0

Active Member
Licensed 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:
Top