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
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
Requirements:
- B4A 6+ as the lib is using an aar file
StepView
Author: DonManfred (wrapper)
Version: 1.5
- HorizontalStepView
Fields:- ba As BA
- 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
- 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
- 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)
- 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
- 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
- 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
- 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)
- 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
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
Last edited: