TimelineView-Android: An Efficient Linear Timeline View Library for Android

Introduction:
TimelineView-Android is an open-source Android library designed for creating linear timeline views. It offers a visual representation of timelines, making it ideal for tracking orders, displaying steps, and more.

Key Features:

  1. Utilizes RecyclerView as the underlying view.
  2. Customizable line attributes including color, width, and style.
  3. Customizable marker attributes including color, size, and style.
  4. Supports multiple layout modes.

Example Code (Kotlin):

// Add dependency
dependencies {
    implementation 'com.github.vipulasri:Timeline-View:1.0.6'
}

// Usage
class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        // Create data
        val data = mutableListOf(
            TimelineData(
                id = 1,
                title = "Timeline 1",
                date = "2023-07-20T12:00:00"
            ),
            TimelineData(
                id = 2,
                title = "Timeline 2",
                date = "2023-07-21T12:00:00"
            ),
            TimelineData(
                id = 3,
                title = "Timeline 3",
                date = "2023-07-22T12:00:00"
            )
        )

        // Create linear timeline view
        val timelineView = findViewById<TimelineView>(R.id.timelineView)

        // Set data
        timelineView.data = data

        // Set line style
        timelineView.lineStyle = TimelineView.LineStyle.DASHED
        timelineView.lineWidth = 5f

        // Set marker style
        timelineView.markerStyle = TimelineView.MarkerStyle.CIRCLE
        timelineView.markerSize = 10f
    }
}

Please use the code with caution. Refer to the documentation for more details.

In summary, TimelineView-Android is a user-friendly linear timeline view library that offers rich features and customization options to meet various needs.

Additional Information:

  • Project Repository:

https://github.com/vipulasri/Timeline-View

  • Version: 1.0.6
  • License: Apache License 2.0