Skip to content
项目

关于

TheGlowingLoader 是一个高度可配置的进度指示库,专为 Android 平台原生开发。它实现了由 Shashank Sahay 设计的方案。

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

platform API License

TheGlowingLoader

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.

Download Demo Apk

Demo Video

Here is how the loader looks by default:

Showcase Video

But you can also tweak it according to your need:

Example A Example B
Customized One Customized Two

Dependency

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.7'
	}

Usage

<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" />

Attributes

<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.

Inspiration

This library was a result of challenge hosted by Uplabs

Contribution

Any contributions, large or small,features, bug fixes are welcomed and appreciated. Use pull requests, they will be thoroughly reviewed and discussed.

License

Library falls under Apache 2.0

探索相关项目

加载中…