TimeLineView 仿外卖订单状态控件 项目简介
TimeLineView一款仿外卖订单状态的开源控件,支持自定义文字,颜色,字体大小等功能显示效果USAGEGradlegradle 2行 compile
'com.wrbug:timelineview:1.0.0'Mavenvbscript-html 7行 <
dependency><
groupId>com.wrbug<
artifactId>timelineview<
version>1.0.0<
type>pom布局中添加xml 11行 <
com.wrbug.opensources.TimeLineView
android:id=
"@+id/timeLineView3"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:layout_margin=
"20dp"
app:preCircleColor=
"#0044ff"
app:preLineColor=
"#333333"
app:startedCircleColor=
"#880000"
app:startedLineColor=
"#ff0000"
app:textSize=
"12sp"/>Activity 添加java 8行TimeLineView mView=(TimeLineView) findViewById(R.id.timeLineView3); Listdata =
new ArrayList<>(); data.add(
"等候支付"); data.add(
"等候商家接单"); data.add(
"等候配送"); data.add(
"等候送达"); mView.setPointStrings(data,
2);添加更多设置java 13行TimeLineView mView=(TimeLineView) findViewById(R.id.timeLineView3); mView.builder()
.pointStrings(txts,
1) .startedCircleColor(Color.BLUE) .underwayCircleColor(Color.BLUE)
.preCircleColor(Color.GRAY) .startedLineColor(Color.BLUE) .preLineColor(Color.GRAY)
.startedStringColor(Color.BLUE) .underwayStringColor(Color.BLUE) .preStringColor(Color.GRAY)
.load();
//开始绘制方法/字段说明
'com.wrbug:timelineview:1.0.0'Mavenvbscript-html 7行 <
dependency><
groupId>com.wrbug<
artifactId>timelineview<
version>1.0.0<
type>pom布局中添加xml 11行 <
com.wrbug.opensources.TimeLineView
android:id=
"@+id/timeLineView3"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:layout_margin=
"20dp"
app:preCircleColor=
"#0044ff"
app:preLineColor=
"#333333"
app:startedCircleColor=
"#880000"
app:startedLineColor=
"#ff0000"
app:textSize=
"12sp"/>Activity 添加java 8行TimeLineView mView=(TimeLineView) findViewById(R.id.timeLineView3); Listdata =
new ArrayList<>(); data.add(
"等候支付"); data.add(
"等候商家接单"); data.add(
"等候配送"); data.add(
"等候送达"); mView.setPointStrings(data,
2);添加更多设置java 13行TimeLineView mView=(TimeLineView) findViewById(R.id.timeLineView3); mView.builder()
.pointStrings(txts,
1) .startedCircleColor(Color.BLUE) .underwayCircleColor(Color.BLUE)
.preCircleColor(Color.GRAY) .startedLineColor(Color.BLUE) .preLineColor(Color.GRAY)
.startedStringColor(Color.BLUE) .underwayStringColor(Color.BLUE) .preStringColor(Color.GRAY)
.load();
//开始绘制方法/字段说明