Skip to content

Step by step,just use HorizontalStepView,VerticalStepView. step indicator,flow indicator,timeline,order process,express status

Notifications You must be signed in to change notification settings

shadowsong91/StepView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StepView

Step by step,just use HorizontalStepDecoration,VerticalStepDecoration. step indicator,flow indicator,timeline,order process,express status

ATTENTION

This library is NOT a view, but a ItemDecoration for RecyclerView. It's easier to use, and can do the same as StepView and Android-StepsView

How to use

// get a RecyclerView
recyclerView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));
HorizontalStepDecoration stepDecoration = new HorizontalStepDecoration.Builder(this)//or VerticalStepDecoration
            .currentRes(R.drawable.step_current)
            .doneRes(R.drawable.step_done)
            .undoneRes(R.drawable.step_undone)
            .height(200)
            .lineWidth(3)
            .lineColor(0xff11cd6e)
            .dashColor(0xff11cd6e)
            .currentStep(25)
            .build();
recyclerView.addItemDecoration(stepDecoration);

That's all code! You can run the example to see more.

Screen shot

image

Thanks

Idea from StepView and Android-StepsView
Icons from iconfont

About

Step by step,just use HorizontalStepView,VerticalStepView. step indicator,flow indicator,timeline,order process,express status

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages