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

https://github.com/saeedmasoumi/dialerloading

A Rotary Dialer loading for Android.
https://github.com/saeedmasoumi/dialerloading

android kotlin loading-animation

Last synced: 8 months ago
JSON representation

A Rotary Dialer loading for Android.

Awesome Lists containing this project

README

          

# DialerLoading [![Android Arsenal]( https://img.shields.io/badge/Android%20Arsenal-DialerLoading-green.svg?style=flat )]( https://android-arsenal.com/details/1/7177 )[ ![Download](https://api.bintray.com/packages/smasoumi/maven/dialer-loading/images/download.svg) ](https://bintray.com/smasoumi/maven/dialer-loading/_latestVersion)

A rotary dialer loading view written in Kotlin.



## Installtion

```
implementation "io.saeid:dialer-loading:1.0.0"
```

## Usage

Add `DialerLoadingView`:

```xml

```

To start loading, call `dial` method:

```kotlin
rotary_dialer.dial(
endless = true // enable endless mode (default is true)
digits = arrayIntOf(1,2,3) // numbers to dial
)
```

To stop loading, call `hangUp` method:

```kotlin
rotary_dialer.hangUp()
```

## Credits

Inspired by : https://www.uplabs.com/posts/dailer-loading-microinteraction

## License

```
Copyright 2018 Saeed Masoumi.

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