All Projects → minibugdev → Drawablebadge

minibugdev / Drawablebadge

Licence: mit
Drawable Badge is an Android library for adding badges to drawables.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Drawablebadge

Ppbadgeview
iOS Custom Badge, Support UIView, UITabBarItem, UIBarButtonItem ,Support Objective-C/Swift; iOS自定义Badge组件, 支持UIView, UITabBarItem, UIBarButtonItem, 支持Objective-C/Swift
Stars: ✭ 807 (+530.47%)
Mutual labels:  badge
Toolbaritembadgesample
Sample shows how to add a badge to ToolBarItems in Xamarin Forms for iOS and Android
Stars: ✭ 70 (-45.31%)
Mutual labels:  badge
Materialbadgetextview
As the name describes, this is an Android library that you can use to show new messages badge and new features badge.
Stars: ✭ 1,331 (+939.84%)
Mutual labels:  badge
Best Practices Badge
🏆Core Infrastructure Initiative Best Practices Badge
Stars: ✭ 928 (+625%)
Mutual labels:  badge
React Notification Badge
Simple notification badge react component
Stars: ✭ 42 (-67.19%)
Mutual labels:  badge
Awesome Github Badges
A curated list of awesome github README.md badges
Stars: ✭ 70 (-45.31%)
Mutual labels:  badge
Counterfab
A FloatingActionButton subclass that shows a counter badge on right top corner
Stars: ✭ 725 (+466.41%)
Mutual labels:  badge
Tdbadgedcell
TDBadgedCell is a table view cell class that adds a badge, similar to the badges in Apple's own apps
Stars: ✭ 1,444 (+1028.13%)
Mutual labels:  badge
Badgen.net
Fast badge service
Stars: ✭ 1,045 (+716.41%)
Mutual labels:  badge
Uitabbaritem Custombadge
UITabBarItem+CustomBadge is a workaround to change the aspect of IOS UIBadgeView
Stars: ✭ 84 (-34.37%)
Mutual labels:  badge
Badges4 Readme.md Profile
👩‍💻👨‍💻 Improve your README.md profile with these amazing badges.
Stars: ✭ 929 (+625.78%)
Mutual labels:  badge
Thsidebar
NSOutlineView and badge
Stars: ✭ 38 (-70.31%)
Mutual labels:  badge
Github Badges
Star / Fork badges for your GitHub Repository!
Stars: ✭ 76 (-40.62%)
Mutual labels:  badge
Badge
Add a badge to your app icon
Stars: ✭ 832 (+550%)
Mutual labels:  badge
Badge42
🚀 Dynamically generated 42 badge for your git readmes.
Stars: ✭ 103 (-19.53%)
Mutual labels:  badge
Bootstrap Maxlength
This plugin integrates by default with Twitter bootstrap using badges to display the maximum lenght of the field where the user is inserting text. Uses the HTML5 attribute "maxlength" to work.
Stars: ✭ 743 (+480.47%)
Mutual labels:  badge
Hitcon Badge 2019
HITCON electric badge for HITCON CMT 2019.
Stars: ✭ 71 (-44.53%)
Mutual labels:  badge
Badger
Badge for R Package
Stars: ✭ 114 (-10.94%)
Mutual labels:  badge
Qualinsight Plugins Sonarqube Badges
Plugin for SonarQube that generates badges displaying information about a project's or view's quality.
Stars: ✭ 108 (-15.62%)
Mutual labels:  badge
Badgeforappicon
The unread badges of the android launcher icon.
Stars: ✭ 83 (-35.16%)
Mutual labels:  badge

Drawable Badge

CircleCI Release GitHub license

Drawable Badge is a android library for adding badges to drawables.

Drawable Badge Android Library

Usage

Generate drawable with badge

val drawable = DrawableBadge.Builder(context)
    .drawableResId(R.mipmap.ic_launcher_round)
    .badgeColor(R.color.badgeColor)
    .badgeSize(R.dimen.badge_size)
    .badgeGravity(Gravity.CENTER_VERTICAL or Gravity.Start)
    .badgeMargin(R.dimen.badge_margin)
    .textColor(R.color.textColor)
    .showBorder(true)
    .badgeBorderColor(R.color.badgeBorderColor)
    .badgeBorderSize(R.dimen.badge_border_size)
    .maximumCounter(99)
    .showCounter(true)
    .build()
    .get(99)

Apply to image view.

imageViewBadge.setImageDrawable(drawable)

Customize

  • drawableResId: Drawable resource id to added badges.
  • drawable: Drawable to added badges.
  • bitmap: Bitmap to added badges.
  • textColor: Badge text color resource id, default #FFFFFF.
  • badgeColor: Badge color resource id , default #FF0000.
  • badgeSize: Badge size supported @DimenRes or @Px, default 16dp.
  • badgeGravity: Position of badge by Android Gravity which need to added. default Gravity.TOP or Gravity.END.
  • badgeMargin: Badge margin supported @DimenRes or @Px, default 0.
  • showBorder: Set visible of badge border, default true.
  • badgeBorderColor: Badge border color resource id , default #FFFFFF.
  • badgeBorderSize: Badge border size supported @DimenRes or @Px, default 0.5dp.
  • maximumCounter: Maximum counter text will append with +, default and not more than 99.
  • showCounter: Set visible of badge counter number, default true.

Deprecated

  • badgePosition: Position of Badge which need to added.

Download

repositories {
    maven { url 'https://jitpack.io' }
}
compile 'com.github.minibugdev:drawablebadge:2.0.1'

License

MIT License

Copyright (c) 2017 Teeranai.P

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].