Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tajchert/WaitingDots
https://github.com/tajchert/WaitingDots
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tajchert/WaitingDots
- Owner: tajchert
- License: mit
- Created: 2015-03-25T12:46:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-08T15:35:04.000Z (over 5 years ago)
- Last Synced: 2024-09-30T18:18:57.348Z (2 months ago)
- Language: Kotlin
- Size: 2.19 MB
- Stars: 739
- Watchers: 30
- Forks: 128
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-kotlin - WaitingDots - null (Libraries)
- awesome-android-ui - https://github.com/tajchert/WaitingDots
- awesome-android-ui - https://github.com/tajchert/WaitingDots
README
# WaitingDots
[![](https://jitpack.io/v/tajchert/WaitingDots.svg)](https://jitpack.io/#tajchert/WaitingDots)[![](https://jitci.com/gh/tajchert/WaitingDots/svg)](https://jitci.com/gh/tajchert/WaitingDots)
![Loading animation](https://raw.githubusercontent.com/tajchert/WaitingDots/master/images/dotsLoadingAnimation.gif)
Small library that provides... bouncing dots. This feature is used in number of messaging apps (such as Hangouts or Messenger), and lately in Android TV (for example when connecting to Wifi).
### Gradle depedency
```gradle
implementation 'com.github.tajchert:WaitingDots:0.6.1'
```
Add Jitpack in your root build.gradle at the end of repositories:
```gradle
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
```### Example
```xml
...
xmlns:dots="http://schemas.android.com/apk/res-auto"
...```
All aditional parameters are optional.List of useful methods:
```java
dots.stop();
dots.start();dots.hide();
dots.show();dots.hideAndStop();
dots.showAndPlay();dots.isHide();
dots.isPlaying();
```### Proguard
```
-dontwarn pl.tajchert.waitingdots.**
-keep public class pl.tajchert.waitingdots.** { public protected private *; }
```### AndroidX and Kotlin
Kotlin since version 0.6.1.
AndroidX since 0.6.0.
Last build without AndroidX: 0.5.2.### Thanks goes to:
[Polidea](https://www.polidea.com/) - time, atmosphere and motivation to create outstanding things.
[Zielony](https://github.com/ZieIony) - many tips and initial commit.
[Krzysztof Bielicki](https://github.com/krzysiekbielicki) - nice pull request that optimised performance and added text Appearance support (0.1.0 -> 0.2.0).