Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shashank02051997/fancyfacebookbadge-android
As the name describes, this is an Android library that you can use to show reacting badges like facebook.
https://github.com/shashank02051997/fancyfacebookbadge-android
android android-lib android-library badge badge-view badgeview java material-design textview ui ui-design
Last synced: 2 months ago
JSON representation
As the name describes, this is an Android library that you can use to show reacting badges like facebook.
- Host: GitHub
- URL: https://github.com/shashank02051997/fancyfacebookbadge-android
- Owner: Shashank02051997
- License: apache-2.0
- Created: 2018-01-23T09:58:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-29T07:30:38.000Z (over 2 years ago)
- Last Synced: 2024-11-06T22:52:50.403Z (3 months ago)
- Topics: android, android-lib, android-library, badge, badge-view, badgeview, java, material-design, textview, ui, ui-design
- Language: Java
- Homepage:
- Size: 1010 KB
- Stars: 117
- Watchers: 6
- Forks: 26
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FancyFacebookBadge-Android
[![platform](https://img.shields.io/badge/platform-Android-yellow.svg)](https://www.android.com)
[![API](https://img.shields.io/badge/API-19%2B-brightgreen.svg?style=plastic)](https://android-arsenal.com/api?level=19)
[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg?style=flat-square)](https://www.apache.org/licenses/LICENSE-2.0.html)
[![](https://jitpack.io/v/Shashank02051997/FancyFacebookBadge-Android.svg)](https://jitpack.io/#Shashank02051997/FancyFacebookBadge-Android)## Prerequisites
Add this in your root `build.gradle` file (**not** your module `build.gradle` file):
```gradle
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
```## Dependency
Add this to your module's `build.gradle` file (make sure the version matches the JitPack badge above):
```gradle
dependencies {
...
implementation 'com.github.Shashank02051997:FancyFacebookBadge-Android:1.6'
}
```
# Fancy Facebook Badge
Fancy Facebook Badge library for android makes you add bades to the text or image.# Usage
First of all, need add FacebookBadge to your xml layout.
```xml
```
Second of all, intract with code in java.
```java
FacebookNotificationBadge mBadge = (FacebookNotificationBadge) findViewById(R.id.badge);
mBadge.setNumber(12); //Set your count
mBadge.setEmoji(Emoji.HAHA); //You can also set Emoji.LIKE, Emoji.WOW etc
//mBadge.setTextColor(Pass ur color);
//mBadge.setText(Pass ur text);
//mBadge.clear(); //Use to remove or clear the badge
//mBadge.getTextColor(); //Gives u text color
//mBadge.isAnimationEnabled(); //Gives u boolean value true or false
//mBadge.setAnimationEnabled(boolean value); //By default it is true```
## Screenshots
**Please click the image below to enlarge.**
## Contributing
Please fork this repository and contribute back using
[pull requests](https://github.com/Shashank02051997/FancyFacebookBadge-Android/pulls).Any contributions, large or small, major features, bug fixes, are welcomed and appreciated
but will be thoroughly reviewed .### Contact - Let's become friend
- [Twitter](https://twitter.com/shashank020597)
- [Github](https://github.com/Shashank02051997)
- [Linkedin](https://www.linkedin.com/in/shashank-singhal-a87729b5/)
- [Facebook](https://www.facebook.com/shashanksinghal02)## Donation
If this project help you reduce time to develop, you can give me a cup of coffee :)## License
* [Apache Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
```
Copyright 2018 Shashank SinghalLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.