https://github.com/bitvale/lightprogress
Android implementation of Light animation from Oleg Frolov
https://github.com/bitvale/lightprogress
Last synced: 19 days ago
JSON representation
Android implementation of Light animation from Oleg Frolov
- Host: GitHub
- URL: https://github.com/bitvale/lightprogress
- Owner: bitvale
- Created: 2018-12-03T17:29:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-27T12:48:44.000Z (about 5 years ago)
- Last Synced: 2025-04-08T21:23:02.794Z (about 2 months ago)
- Language: Kotlin
- Homepage:
- Size: 185 KB
- Stars: 179
- Watchers: 2
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LightProgress
[](https://opensource.org/licenses/Apache-2.0)
[](http://developer.android.com/index.html)
[](https://android-arsenal.com/api?level=16)
[](https://android-arsenal.com/details/1/7459)Created this cool [Light animation](https://dribbble.com/shots/5414044-Light-II) from [Oleg Frolov](https://dribbble.com/Volorf) as android library.
USAGE
-----Just add LightProgress view in your layout XML and LightProgress library in your project via Gradle:
```gradle
dependencies {
implementation 'com.bitvale:lightprogress:1.0.1'
}
```XML
-----```xml
```
You must use the following properties in your XML to change your PacButton.
##### Properties:
* `android:text` (string) -> default "Loading"
* `android:textSize` (dimension) -> default 56sp
* `android:textColor` (color) -> default #484848
* `app:light_color` (color) -> default #FFFFFFKotlin
-----```kotlin
light.setOnClickListener {
if (!light.isOn()) light.on()
else light.off()
}
```LICENCE
-----LightProgress by [Alexander Kolpakov](https://play.google.com/store/apps/dev?id=7044571013168957413) is licensed under an [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).