ProductPromotion
Logo

Kotlin

made by https://0x3d.site

GitHub - MackHartley/RoundedProgressBar: A customizable, animated progress bar that features rounded corners. This Android library is designed to look great and be simple to use ๐ŸŽ‰
A customizable, animated progress bar that features rounded corners. This Android library is designed to look great and be simple to use ๐ŸŽ‰ - MackHartley/RoundedProgressBar
Visit Site

GitHub - MackHartley/RoundedProgressBar: A customizable, animated progress bar that features rounded corners. This Android library is designed to look great and be simple to use ๐ŸŽ‰

GitHub - MackHartley/RoundedProgressBar: A customizable, animated progress bar that features rounded corners. This Android library is designed to look great and be simple to use ๐ŸŽ‰

Using the RoundedProgressBar library you can easily create beautiful progress bars with individually rounded corners, animating progress text and more! Below are several examples of progress bars created with this library.

If youโ€™d like to see if this library is right for your project then try downloading the demo app which is available on the Google Play Store. There you can fully customize a RoundedProgressBar to see if youโ€™re able to achieve the desired look and feel for your project.

Do you use RoundedProgressBar in your app? Consider adding a picture or GIF of your usage to who_uses_rpb.md. This provides examples to developers on how the library is used and gives your app a bit of free publicity!

Gradle Setup โš™๏ธ

If you don't have this already, add it to your root build.gradle file:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Then you can add the dependency to your app build.gradle file:

dependencies {
    ...
    implementation 'com.github.MackHartley:RoundedProgressBar:3.0.0'
}

Notable Features ๐ŸŒŸ

  1. Full Color Customization - You can even specify what color the text is depending on which background it draws over. Transparent colors are also supported
  1. Complete Text Customization - The text displayed on the progress bar can be customized to say whatever you want. Additionally you can add padding and even supply your own font for use with the progress bar (.ttf and .otf formats supported)
  1. Low Value Support - The progress bar looks nice even at low values (This is a common issue when dealing with rounded progress bars)
  1. Any Corner Radius Allowed - Individual corners can even have different radius values
  1. Modular - The RoundedProgressBar library can be seamlessly included in custom layouts due to the fact that each corner can have a different radius

Additionally, the RoundedProgressBar handles all internal state during configuration changes

Public Methods and Xml Attributes ๐Ÿ’ป

These are the methods which can be called on the RoundedProgressBar class:

setProgressPercentage(progressPercentage: Double, shouldAnimate: Boolean = true)
getProgressPercentage(): Double

setProgressDrawableColor(@ColorInt newColor: Int) // Sets the color of the 'progress' part of the progress bar
setBackgroundDrawableColor(@ColorInt newColor: Int) // Sets the color of the 'background' part of the progress bar
setProgressTextColor(@ColorInt newColor: Int) // Sets text color for when it is drawn over the progress part of progress bar
setBackgroundTextColor(@ColorInt newColor: Int) // Sets text color for when it is drawn over the background part of progress bar

setCornerRadius(
    topLeftRadius: Float,
    topRightRadius: Float,
    bottomRightRadius: Float,
    bottomLeftRadius: Float
)

setTextSize(newTextSize: Float)
setTextPadding(newTextPadding: Float) // Sets the padding between the progress text and end (or start) of the progress bar
setAnimationLength(newAnimationLength: Long)

showProgressText(shouldShowProgressText: Boolean)
setRadiusRestricted(isRestricted: Boolean)

The RoundedProgressBar can also be configured via xml attributes. Below is the full list of attributes along with the methods they map to.

Xml Attribute Method
rpbProgress setProgressPercentage(...)
rpbProgressColor setProgressDrawableColor(...)
rpbBackgroundColor setBackgroundDrawableColor(...)
rpbProgressTextColor setProgressTextColor(...)
rpbBackgroundTextColor setBackgroundTextColor(...)
rpbCornerRadius setCornerRadius(...)
rpbCornerRadiusTopLeft setCornerRadius(...)
rpbCornerRadiusTopRight setCornerRadius(...)
rpbCornerRadiusBottomRight setCornerRadius(...)
rpbCornerRadiusBottomLeft setCornerRadius(...)
rpbTextSize setTextSize(...)
rpbTextPadding setTextPadding(...)
rpbAnimationLength setAnimationLength(...)
rpbShowProgressText showProgressText(...)
rpbIsRadiusRestricted setRadiusRestricted(...)

Contributing ๐Ÿค

Feel free to open up issues on this repo to report bugs or request features.

Additionally if you'd like to contribute to the library please feel free to open up a pull request! Just give me a heads up first though (via issues or comments) so we don't overwrite each other in the event I am updating the project.

Special thanks to all those who have supported this repo thus far!

License ๐Ÿ“„

Copyright 2021 Mack Hartley

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.

More Resources
to explore the angular.

mail [email protected] to add your project or resources here ๐Ÿ”ฅ.

Related Articles
to learn about angular.

FAQ's
to learn more about Angular JS.

mail [email protected] to add more queries here ๐Ÿ”.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory