Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/elevenetc/badgeview
- Owner: elevenetc
- Created: 2015-09-01T00:32:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-21T01:09:56.000Z (over 9 years ago)
- Last Synced: 2024-12-17T05:09:21.705Z (11 days ago)
- Topics: android, android-library, android-ui, animation
- Language: Java
- Homepage:
- Size: 1.81 MB
- Stars: 446
- Watchers: 20
- Forks: 92
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
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