仿外卖订单状态控件 TimeLineView

码农软件 · 软件分类 · 动画(Animation) · 2019-07-04 22:27:40

软件介绍

TimeLineView

一款仿外卖订单状态的开源控件,支持自定义文字,颜色,字体大小等功能

显示效果

USAGE

Gradle

gradle    2行

  compile
      'com.wrbug:timelineview:1.0.0'

Maven

vbscript-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();
      //开始绘制

方法/字段说明

本文地址:https://codercto.com/soft/d/9430.html

Introduction to Algorithms, 3rd Edition

Introduction to Algorithms, 3rd Edition

Thomas H. Cormen、Charles E. Leiserson、Ronald L. Rivest、Clifford Stein / The MIT Press / 2009-7-31 / USD 94.00

Some books on algorithms are rigorous but incomplete; others cover masses of material but lack rigor. Introduction to Algorithms uniquely combines rigor and comprehensiveness. The book covers a broad ......一起来看看 《Introduction to Algorithms, 3rd Edition》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具