An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# LightProgress

sample

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Platform](https://img.shields.io/badge/platform-android-green.svg)](http://developer.android.com/index.html)
[![API](https://img.shields.io/badge/API-16%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=16)
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-LightProgress-orange.svg?style=flat)](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.


Design on Dribbble


Read on Medium

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 #FFFFFF

Kotlin
-----

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