public void initLine(int viewType) {
        if(viewType == LineType.START) {
            showStartLine(false);
            showEndLine(true);
        } else if(viewType == LineType.END) {
            showStartLine(true);
            showEndLine(false);
        } else if(viewType == LineType.ONLYONE) {
            showStartLine(false);
            showEndLine(false);
        } else {
            showStartLine(true);
            showEndLine(true);
        }

        initTimeline();
    }
Init line.

@param viewType the view type
timelineview/src/main/java/com/github/vipulasri/timelineview/TimelineView.java