B4A Library ShowCaseView Wrapper

Discussion in 'Additional libraries, classes and official updates' started by jahswani, Jun 22, 2015.

Similar threads

B4A Tutorial [java] Custom View with Designer Support (Java library)
B4A Library PanoramaImageView
B4A Library CircleProgressMaster
B4A Library SnakeView
B4A Library LEDView
B4A Library AnimatedCheckbox V1.0.1
  1. jahswani

    jahswani Active 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
     

    Attached Files:

    hibrid0, Jerez, somed3v3loper and 8 others like this.
  2. MarcoRome

    MarcoRome Expert Licensed User

  3. jahswani

    jahswani Active Member Licensed User

    Let me reupload with res files :
    1 minute later : Find attached the working example.
     

    Attached Files:

    Last edited: Jun 22, 2015
  4. MarcoRome

    MarcoRome Expert Licensed User

    Good now work.

    in your code maybe forget this line:

    Code:
    sc.SendToBack
    Code:
    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 ;)
     
  5. jahswani

    jahswani Active Member Licensed User

    Use
    Code:
    sc.blockTouch = True
    Or
    Code:
    sc.blockTouch = False
    It will solve your issue.
     
    Last edited: Jun 23, 2015
  6. hibrid0

    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: Nov 19, 2015
  7. jahswani

    jahswani Active Member Licensed User

    Sure.
     
Loading...