Pencil Loader Animation with jetpack compose, The pencil is drawn with canvas 🖌 , I used a circular progress indicator with some linked keyframes for the animation 😄
Pencil.loader.animation.preview.mp4
You can use this loader in your own projects.
If you are using Groovy:
Add the dependency below to your module's build.gradle
file:
dependencies {
implementation "io.github.m0coding:pencilloader:1.0.0"
}
If you are using Kotlin:
Add the dependency below to your module's build.gradle.kts
file:
dependencies {
implementation("io.github.m0coding:pencilloader:1.0.0")
}
You can simply call the PencilLoader composable function with fixed size and stroke size:
PencilLoader(
strokeWidth = 14.dp,
modifier = Modifier
.size(200.dp)
)