Android Library which is the implementation of The Glowing Loader created by Shashank Sahay.
I have made it so that it can be easily customized. You can change line stroke width, line colors, particle colors, disable several effects etc.
Library supports OS on API 14 and above.
Example A | Example B |
---|---|
![]() |
![]() |
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
and then add dependency
dependencies {
implementation 'com.github.varunest:TheGlowingLoader:1.0.5'
}
<com.varunest.loader.TheGlowingLoader
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<attr name="theglowingloader_line_1_color" format="reference" />
<attr name="theglowingloader_line_2_color" format="reference" />
<attr name="theglowingloader_line_stroke_width" format="integer" />
<attr name="theglowingloader_ripple_color" format="reference" />
<attr name="theglowingloader_particle_1_color" format="reference" />
<attr name="theglowingloader_particle_2_color" format="reference" />
<attr name="theglowingloader_particle_3_color" format="reference" />
<attr name="theglowingloader_disable_shadows" format="boolean" />
<attr name="theglowingloader_disable_ripple" format="boolean" />
<attr name="theglowingloader_shadow_opacity" format="float" />
You can also access and modify all these attributes at runtime by getting the reference of TheGlowingLoader
and calling its setConfiguration
method.
This library was a result of challenge hosted by Uplabs
Any contributions, large or small,features, bug fixes are welcomed and appreciated. Use pull requests, they will be thoroughly reviewed and discussed.
Library falls under Apache 2.0