TimelineView
A Jetpack Compose modular UI component inspired by the Soundcloud wave scroll view.
Install / Use
/learn @ferPrieto/TimelineViewREADME
TimelineView 〰️
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.
Inspiration
<div align="center"> <img src="art/inspiration.gif" alt="Soundcloud Inspiration" width="500"/>This is the original Soundcloud wave scroll view that inspired this project.
</div>Demo
<table align="center"> <tr> <td align="center"> <img src="art/main_screen_light.gif" alt="Main Screen Light" width="300"/> <br> <em>Main Screen - Light Mode</em> </td> <td align="center"> <img src="art/main_screen_dark.gif" alt="Main Screen Dark" width="300"/> <br> <em>Main Screen - Dark Mode</em> </td> </tr> <tr> <td align="center"> <img src="art/usecases_light.gif" alt="Use Cases Light" width="300"/> <br> <em>Use Cases - Light Mode</em> </td> <td align="center"> <img src="art/usecases_dark.gif" alt="Use Cases Dark" width="300"/> <br> <em>Use Cases - Dark Mode</em> </td> </tr> </table>Installation
1. Add this dependency in build.gradle (app-level)
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
2. Include Jitpack repository
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" }
}
}
Usage
Basic Implementation
@Composable
fun MyScreen() {
TimelineView(
height = 120.dp
)
}
With Custom Content
@Composable
fun MyScreen() {
TimelineView(
height = 120.dp,
pastContent = R.drawable.my_past_content,
futureContent = R.drawable.my_future_content
)
}
Advanced Configuration
@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
)
}
Simplified Version
@Composable
fun MyScreen() {
TimelineViewSimple(
height = 120.dp
)
}
Material 3 Styled
@Composable
fun MyScreen() {
TimelineViewMaterial3(
height = 120.dp
)
}
Structure
timelineview/: Core TimelineView library moduleapp/: Demo application showcasing various use cases
Documentation
For detailed API documentation, see timelineview/README.md
License
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.
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
