Compose-Circular-Progress-View
Compose-Circular-Progress-View copied to clipboard
Custom Progress View with Jetpack Compose
Compose-Circular-Progress-View
CircularProgressView is an Android library that helps you to easily create a custom CircularProgressView.

Installation
Add the jitpack.io repository:
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
and the dependency
dependencies {
implementation "com.github.ayoubbk:Compose-Circular-Progress-View:$version"
}
Feature
- Infinite or Determinate progress view
- Custom color for progress and background
- Configure progress width
- Configure progress background width
- Set animation duration
- Set start delay for determinate progress view
- Round or Square border
- Configure Progress direction: Left or Right
Usage
Infinite CircularProgressView
@Composable
fun infiniteProgressSample() {
InfiniteProgressView(
modifier = Modifier,
progressColor = blue,
progressBackgroundColor = light_blue,
strokeWidth = 10.dp,
strokeBackgroundWidth = 10.dp,
progressDirection = AnimationDirection.RIGHT,
roundedBorder = false,
durationInMilliSecond = 1300,
defaultDiameter = 80.dp
)
}
Determinate CircularProgressView
@Composable
fun determinateProgressSample() {
DeterminateProgressView(
modifier = Modifier,
progressColor = blue,
progressBackgroundColor = light_blue,
strokeWidth = 10.dp,
strokeBackgroundWidth = 10.dp,
progress = 80f,
progressDirection = AnimationDirection.RIGHT,
roundedBorder = true,
durationInMilliSecond = 5000,
startDelay = 1000,
radius = 80.dp,
waveAnimation = true
)
}
Developed By
Ayoub Ben Khemis
License
Copyright 2021 Ayoub Ben Khemis
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.