How to implement an android delivery tracker using android studio [closed]

╄→尐↘猪︶ㄣ 提交于 2019-12-13 11:28:49

问题


I want a similar progress bar tracker like shown in the pic below for an android delivery app.

See this


回答1:


Try Timeline-View

In XML

<com.github.vipulasri.timelineview.TimelineView
android:id="@+id/time_marker"
android:layout_width="wrap_content"
android:layout_height="match_parent"
app:markerSize="20dp"
app:lineSize="2dp"
app:line="@color/colorPrimary"
app:linePadding="5dp"/>

RecyclerView Holder

  public class TimeLineViewHolder extends RecyclerView.ViewHolder {
    public  TimelineView mTimelineView;

    public TimeLineViewHolder(View itemView, int viewType) {
        super(itemView);
        mTimelineView = (TimelineView) itemView.findViewById(R.id.time_marker);
        mTimelineView.initLine(viewType);
    }
}

For full implementation look at this



来源:https://stackoverflow.com/questions/53301084/how-to-implement-an-android-delivery-tracker-using-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!