Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/elevenetc/badgeview

Badge view with animated effect which shows a bitmap or a text
https://github.com/elevenetc/badgeview

android android-library android-ui animation

Last synced: 4 days ago
JSON representation

Badge view with animated effect which shows a bitmap or a text

Awesome Lists containing this project

README

        

# BadgeView
Badge view with animated effect which shows a bitmap or a text.

![animation](docs/badgeview-spongebob.gif)
### Usage
```XML

```
```Java
BadgeView badgeView = new BadgeView(this);
badgeView.setValue(R.string.hello);
```
### XML attributes
```XML

```
### Animations
To show values sequentially use `setValues` method:
```Java
Bitmap bitmapX;
badgeView.setValues(0, 1, bitmapX, 3, "How are you?");
```
To define partucular delay for each value use helper class `BadgeView.AnimationSet`:
```Java
new BadgeView.AnimationSet(badgeView)
.add("Hi!", 1000)
.add("How are you?", 1200)
.add("Im fine!", 1500)
.play();
```
### Download
```Groovy
repositories {
maven { url "https://jitpack.io" }
}
//...
dependencies {
//...
compile 'com.github.elevenetc:badgeview:v1.0.0'
}
```
### Licence
http://www.apache.org/licenses/LICENSE-2.0