显示步骤执行情况的控件,在某些情况下,还是非常有用的。
[img]http://dl2.iteye.com/upload/attachment/0110/2397/7646f948-6191-3b54-b650-e8f7368a04a4.png[/img]
[url]http://www.jcodecraeer.com/a/opensource/2015/0918/3471.html[/url]
[img]http://dl2.iteye.com/upload/attachment/0110/2397/7646f948-6191-3b54-b650-e8f7368a04a4.png[/img]
<com.anton46.stepsview.StepsView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/stepsView0"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
mStepsView.setLabels(steps)
.setBarColorIndicator(getContext().getResources().getColor(R.color.material_blue_grey_800))
.setProgressColorIndicator(getContext().getResources().getColor(R.color.orange))
.setLabelColorIndicator(getContext().getResources().getColor(R.color.orange))
.setCompletedPosition(0)
.drawView();
[url]http://www.jcodecraeer.com/a/opensource/2015/0918/3471.html[/url]