shadowsong91 / StepView

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Java 100.0%