Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miladheydari/MiladBadgeView
MiladBadgeView badge view for android
https://github.com/miladheydari/MiladBadgeView
Last synced: about 6 hours ago
JSON representation
MiladBadgeView badge view for android
- Host: GitHub
- URL: https://github.com/miladheydari/MiladBadgeView
- Owner: miladheydari
- Created: 2016-05-07T06:54:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-12T07:59:34.000Z (about 8 years ago)
- Last Synced: 2023-06-30T20:38:14.071Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 215 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-android-ui - https://github.com/miladheydari/MiladBadgeView
README
# milad badge view
badge view for android
![Demos](https://github.com/miladheydari/MiladBadgeView/blob/master/capture/device-2016-09-22-174932.png "Demos")
![Demos](https://github.com/miladheydari/MiladBadgeView/blob/master/capture/device-2016-09-22-175029.png "Demos")***
simple and useful
***
Install
=====Add it in your root `build.gradle` at the end of repositories:
```groovy
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
```
Add the dependency```groovy
dependencies {
compile 'com.github.miladheydari:MiladBadgeView:1.1.0'
}
```
or download https://github.com/miladheydari/MiladBadgeView/blob/master/miladbadgeview/release/MiladBadgeView.jar and copy to libs project folder.
# usage
```Java
TextView tv=(TextView)findViewById(R.id.tv);
MiladBadgeView mbv=new MiladBadgeView(getActivity());
mbv.setTarget(tv);
mbv.setText("1");
```