https://github.com/miladheydari/MiladBadgeView
MiladBadgeView badge view for android
https://github.com/miladheydari/MiladBadgeView
Last synced: 5 months 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 (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-12T07:59:34.000Z (over 8 years ago)
- Last Synced: 2023-06-30T20:38:14.071Z (almost 2 years 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

***
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");
```