It is a Profile Image View with percentage progress developed in Kotlin. It is a highly customizable view that offers multiple attributes for creating either dash or continuous progress view around profile image based on your requirements.
Add the Maven Central repository to your project's root
Add the dependency in your app
Sample implementation here
Use the view in your layout.xml by declaring:
For getting current value of progress:
Following are the various attributes available to customize the look and feel of the Seekbar.
ppv_arcBackgroundColor: Background Color of progress/arc base view.
ppv_currentValue: Current value of the Progress in progress/arc view.
ppv_arcWidth: Width of progress/arc view
ppv_isDashEnable: Dash progress/arc view enable or not.
ppv_dashWidth: Dash width of progress/arc view when dash progress enable.
ppv_isRounded: Shows rounded corner when dash is not enable.
ppv_arcProgressStartColor: Color of the progress in progress/arc view. It used of gradient effect.
ppv_arcProgressEndColor: Color of the progress in progress/arc view. It used of gradient effect.
ppv_max: Maximum value of progress/arc supported in view.
srcCompat: Image which should be display in centre of the progress/arc view.
ppv_imgPadding: Padding between progress view and image view. It will vary based on progress/arc width.
ppv_imgBorderWidth: Width of border/stroke around image.
ppv_imgBorderColor: Color of the border/stroke around image.
Copyright 2021 SmartSense Solutions
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
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.