B4A Library CustomTutorialView

I was playing around with some code and ended up writing this vey simple library.

Requirements:
1 - B4A 7.x
2 - ViewPager library.
3 - Copy the CustomTutorialView.jar and CustomTutorialView.xml files to your additional libraries directory.

Usage:
B4X:
Private Tutorial As CustomTutorialView

'Initialize the CustomTutorialView library
Tutorial.Initialize(Activity, Me, "Tutorial")

'Add some layouts
Tutorial.LoadTutorialLayout("page1", Colors.ARGB(255, 34, 177, 76))
Tutorial.LoadTutorialLayout("page2", Colors.ARGB(255, 255, 127, 39))
Tutorial.LoadTutorialLayout("page3", Colors.ARGB(255, 237, 28, 36))

'Add a font (optional)
Tutorial.SetButtonsFont(RobotoLightFont.LoadFromAssets("Roboto-Bold.ttf"))

'Set the buttons text color (optional)
Tutorial.SetButtonsTextColor(Colors.White)
Screenshot:
lCdAivn.png


See attached sample for more details.

Nothing fancy, just a little library I wanted to share.
 

Attachments

  • CustomTutorialView_Lib_1.0.zip
    4.9 KB · Views: 215
  • CustomTutorialView_Sample.zip
    141.7 KB · Views: 226
Top