实现方法
Recyclerview+ItemDecoration
重写ItemDecoration
class TimeLineItemDecoration(var context: Context) : RecyclerView.ItemDecoration() {
//上下左右的偏移量
var topOffset : Int = dp2px(context , 30)
var bottomOffset : Int = 0
var leftOffset : Int = dp2px(context , 60)
var rightOffset : Int = 0
//轴点半径
var circleRadius : Float = dp2px(context , 8).toFloat()
//轴点画笔
var paintCircle : Paint? = null
//轴线画笔
var paintLine : Paint? = null
init {
paintCircle = Paint(Paint.ANTI_ALIAS_FLAG)
paintC