B4A Library Horizontal and Vertical StepView

This is a wrap for this github project.

Requirements:
- B4A 6+ as the lib is using an aar file


StepView
Author:
DonManfred (wrapper)
Version: 1.5
  • HorizontalStepView
    Fields:
    • ba As BA
    Methods:
    • BringToFront
    • DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
    • 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)
    • setStepViewComplectedTextColor (complectedTextColor As Int) As HorizontalStepViewWrapper
    • setStepViewTexts (texts As List) As HorizontalStepViewWrapper
    • setStepViewUnComplectedTextColor (unComplectedTextColor As Int) As HorizontalStepViewWrapper
    • setStepsViewIndicatorAttentionIcon (attentionIcon As Drawable) As HorizontalStepViewWrapper
    • setStepsViewIndicatorComplectingPosition (complectingPosition As Int) As HorizontalStepViewWrapper
    • setStepsViewIndicatorCompleteIcon (completeIcon As Drawable) As HorizontalStepViewWrapper
    • setStepsViewIndicatorCompletedLineColor (completedLineColor As Int) As HorizontalStepViewWrapper
    • setStepsViewIndicatorDefaultIcon (defaultIcon As Drawable) As HorizontalStepViewWrapper
    • setStepsViewIndicatorUnCompletedLineColor (unCompletedLineColor As Int) As HorizontalStepViewWrapper
    Properties:
    • Background As Drawable
    • Color As Int [write 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
  • HorizontalStepsViewIndicator
    Fields:
    • ba As BA
    Methods:
    • BringToFront
    • DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
    • 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)
    Properties:
    • AttentionIcon As Drawable [write only]
    • Background As Drawable
    • CircleCenterPointPositionList As List [read only]
    • CircleRadius As Float [read only]
    • Color As Int [write only]
    • ComplectingPosition As Int [write only]
    • CompleteIcon As Drawable [write only]
    • CompletedLineColor As Int [write only]
    • DefaultIcon As Drawable [write only]
    • Enabled As Boolean
    • Height As Int
    • Left As Int
    • Parent As Object [read only]
    • StepNum As Int [write only]
    • Tag As Object
    • Top As Int
    • UnCompletedLineColor As Int [write only]
    • Visible As Boolean
    • Width As Int
  • VerticalStepView
    Fields:
    • ba As BA
    Methods:
    • BringToFront
    • DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
    • 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)
    • setStepViewComplectedTextColor (complectedTextColor As Int) As VerticalStepViewWrapper
    • setStepViewTexts (texts As List) As VerticalStepViewWrapper
    • setStepViewUnComplectedTextColor (unComplectedTextColor As Int) As VerticalStepViewWrapper
    • setStepsViewIndicatorAttentionIcon (attentionIcon As Drawable) As VerticalStepViewWrapper
    • setStepsViewIndicatorComplectingPosition (complectingPosition As Int) As VerticalStepViewWrapper

      complectingPosition:
      Return type: @return:
    • setStepsViewIndicatorCompleteIcon (completeIcon As Drawable) As VerticalStepViewWrapper
    • setStepsViewIndicatorCompletedLineColor (completedLineColor As Int) As VerticalStepViewWrapper
    • setStepsViewIndicatorDefaultIcon (defaultIcon As Drawable) As VerticalStepViewWrapper
    • setStepsViewIndicatorUnCompletedLineColor (unCompletedLineColor As Int) As VerticalStepViewWrapper
    Properties:
    • Background As Drawable
    • Color As Int [write 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
  • VerticalStepViewIndicator
    Fields:
    • ba As BA
    Methods:
    • BringToFront
    • DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
    • 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)
    Properties:
    • AttentionIcon As Drawable [write only]
    • Background As Drawable
    • CircleCenterPointPositionList As List [read only]
    • Color As Int [write only]
    • ComplectingPosition As Int [write only]
    • CompleteIcon As Drawable [write only]
    • CompletedLineColor As Int [write only]
    • DefaultIcon As Drawable [write only]
    • Enabled As Boolean
    • Height As Int
    • Left As Int
    • Parent As Object [read only]
    • StepNum As Int [write only]
    • Tag As Object
    • Top As Int
    • UnCompletedLineColor As Int [write only]
    • Visible As Boolean
    • Width As Int

Screenshot_20160625-132523.png

Installation:
- Extract the contents of StepViewV[x.yy].zip to your additional library folder
This is a jar, a xml and a aar file...

Samplecode from the Example in StepViewEx.zip

B4X:
Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.

    Private hsvi1 As HorizontalStepsViewIndicator
    Private hsv1 As HorizontalStepView
    Private vsv1 As VerticalStepView
    Private vsvi1 As VerticalStepViewIndicator
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("LayoutHorizontal")
    Dim l As List
    l.Initialize
    l.Add("1")
    l.Add("2")
    l.Add("3")
    hsv1.setStepViewTexts(l)
    vsv1.setStepViewTexts(l)
 
 
End Sub

Sub Activity_Resume
    Dim r As Int = Rnd(0,4)
    hsv1.setStepsViewIndicatorComplectingPosition(r)
    hsvi1.ComplectingPosition = r
    vsv1.setStepsViewIndicatorComplectingPosition(r)
    vsvi1.ComplectingPosition = r
End Sub
 

Attachments

  • StepViewV1.0.zip
    22.2 KB · Views: 355
  • StepViewEx.zip
    8 KB · Views: 469
  • StepViewV1.5.zip
    42.8 KB · Views: 496
Last edited:

M.LAZ

Active Member
Licensed User
Longtime User
can i use it with Edittext and button views like this picture
 

Attachments

  • form2.png
    form2.png
    189.4 KB · Views: 360

DonManfred

Expert
Licensed User
Longtime User
I don´t know. Probably no.
I wrote the Lib a year ago and i do not have the source anymore. So i can not check. You need to check the Github project to hopefully find more info.

Next time please create a new thread in the questionsforum for any question you have! You can link to the Thread you are refering to in this Thread.
 
Top