Jun 22, 2015 Replies: 6 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 Attachments 2.png 24.1 KB · Views: 750 5.png 98.3 KB · Views: 755 ShowCaseWrapper.zip ShowCaseWrapper.zip 11.4 KB · Views: 631 LibExample -SC.zip LibExample -SC.zip 220.1 KB · Views: 653 Last edited: May 10, 2021 Click to expand...
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
jahswant Well-Known Member Licensed User Longtime User Jun 22, 2015 #3 Let me reupload with res files : 1 minute later : Find attached the working example. Attachments LibExample -SC.zip LibExample -SC.zip 220.1 KB · Views: 612 Last edited: Jun 22, 2015
MarcoRome Expert Licensed User Longtime User Jun 22, 2015 #4 Good now work. in your code maybe forget this line: B4X: Expand Collapse Copy sc.SendToBack B4X: Expand Collapse Copy 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
Good now work. in your code maybe forget this line: B4X: Expand Collapse Copy sc.SendToBack B4X: Expand Collapse Copy 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 Jun 22, 2015 #5 Use B4X: Expand Collapse Copy sc.blockTouch = True Or B4X: Expand Collapse Copy sc.blockTouch = False It will solve your issue. Last edited: Jun 23, 2015
Use B4X: Expand Collapse Copy sc.blockTouch = True Or B4X: Expand Collapse Copy sc.blockTouch = False It will solve your issue.
hibrid0 Active Member Licensed User Longtime User Nov 19, 2015 #6 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
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
jahswant Well-Known Member Licensed User Longtime User Nov 20, 2015 #7 hibrid0 said: 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 Click to expand... Sure.
hibrid0 said: 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 Click to expand... Sure.