SkillAgentSearch skills...

StepView

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

Install / Use

/learn @shadowsong91/StepView
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

Related Skills

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated5y ago
Forks3

Languages

Java

Security Score

55/100

Audited on Jul 21, 2020

No findings