B4A Library BreadcrumbsView

Enjoy this project from B4A : https://github.com/VictorAlbertos/BreadcrumbsView
A customizable Android view for paginated forms
breadcrumbs.gif


NOTE : @DependsOn(values={"android-support-v4"})

BreadcrumbsView
Author:
SMM
Version: 0.01
  • BreadcrumbsView
    Fields:
    • ba As BA
    Methods:
    • BringToFront
    • Initialize (EventName As String, steps As Int, currentstep As Int)
    • 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)
    • nextStep
    • prevStep
    Properties:
    • Background As Drawable
    • Color As Int [write only]
    • CurrentStep As Int [read only]
    • Enabled As Boolean
    • Height As Int
    • Left As Int
    • Parent As Object [read only]
    • Tag As Object
    • Top As Int
    • Visible As Boolean
    • Width As Int
    • nextStepBorderDotColor As Int [write only]
    • nextStepFillDotColor As Int [write only]
    • nextStepSeparatorColor As Int [write only]
    • visitedStepBorderDotColor As Int [write only]
    • visitedStepFillDotColor As Int [write only]
    • visitedStepSeparatorColor As Int [write only]


My sample

B4X:
#Region  Project Attributes
    #ApplicationLabel: B4A Example
    #VersionCode: 1
    #VersionName:
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: unspecified
    #CanInstallToExternalStorage: False
    #AdditionalRes : ..\res
#End Region

#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: True
#End Region

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.

End Sub

Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.
    Dim bread As BreadcrumbsView
End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    'Activity.LoadLayout("Layout1")
    bread.Initialize("",6, 0)
    bread.nextStepBorderDotColor=Colors.Red
    bread.nextStepFillDotColor=Colors.Yellow
    bread.nextStepSeparatorColor=Colors.LightGray
    bread.visitedStepBorderDotColor=Colors.Blue
    Activity.AddView(bread,0,0,100%x,10dip)
End Sub

Sub Activity_click
    Log(bread.CurrentStep)
    bread.nextStep
End Sub
Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub
 

Attachments

  • BreadcrumbsView.zip
    14.2 KB · Views: 249
  • breadcrumbsview_res.zip
    1.3 KB · Views: 248
Last edited:
Top