Skip to content

使用RecyclerView.ItemDecorator 实现的时间轴布局

Notifications You must be signed in to change notification settings

Xigong93/TimeLineDecorator

Repository files navigation

使用RecyclerView.ItemDecorator 实现的时间轴布局

普通样式

普通样式

pokercc.android.timeline.TimeLineDecorator
...
public class TimeLineDecorator extends RecyclerView.ItemDecoration {
    
    /**
     * @param headDrawable 小圆头的drawable
     * @param lineDrawable 下面的线的drawable
     * @param padding      padding
     * @param centerMargin 小圆头和下面的线的间距
     */
    public TimeLineDecorator(@NonNull Drawable headDrawable, @NonNull Drawable lineDrawable, @Nullable Rect padding, @Px int centerMargin) 
}

参数解释:

贯穿式时间轴 贯穿式时间轴

原设计图 https://www.meiyou.com/dashijian

About

使用RecyclerView.ItemDecorator 实现的时间轴布局

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published