TimelineView provides a synchronized scrolling experience with two content views that move in complementary directions. Originally designed for audio waveform visualization, it's now a versatile component perfect for any timeline-based application.
Main Screen - Light Mode |
Main Screen - Dark Mode |
Use Cases - Light Mode |
Use Cases - Dark Mode |
Kotlin:
implementation("com.github.ferPrieto:timelineview:LATEST_VERSION_NUMBER")Groovy:
implementation 'com.github.ferPrieto:timelineview:LATEST_VERSION_NUMBER'If you are using a Gradle version catalog through a libs.versions.toml file:
- Add
timelineview = "LATEST_VERSION_NUMBER"in the[versions]section. - Add
timelineview = { group = "com.github.ferPrieto", name = "timelineview", version.ref = "timelineview" }in the[libraries]section - Add
implementation(libs.timelineview)in the app-levelbuild.gradlefile
You must include jitpack.io in your settings.gradle file because it's a public dependency
Kotlin:
dependencyResolutionManagement {
...
repositories {
...
maven("https://jitpack.io")
}
}Groovy:
dependencyResolutionManagement {
...
repositories {
...
maven { url "https://jitpack.io" }
}
}@Composable
fun MyScreen() {
TimelineView(
height = 120.dp
)
}@Composable
fun MyScreen() {
TimelineView(
height = 120.dp,
pastContent = R.drawable.my_past_content,
futureContent = R.drawable.my_future_content
)
}@Composable
fun MyScreen() {
TimelineView(
height = 120.dp,
pastContent = R.drawable.my_past_content,
futureContent = R.drawable.my_future_content,
offsetFraction = 1f/8f, // Custom offset
dividerWidth = 1.dp,
dividerColor = Color.Gray
)
}@Composable
fun MyScreen() {
TimelineViewSimple(
height = 120.dp
)
}@Composable
fun MyScreen() {
TimelineViewMaterial3(
height = 120.dp
)
}timelineview/: Core TimelineView library moduleapp/: Demo application showcasing various use cases
For detailed API documentation, see timelineview/README.md
Copyright 2025 Fernando Prieto Moyano
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.




