All Projects → AlexLiuSheng → Badgeview

AlexLiuSheng / Badgeview

a BadeView base on android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Badgeview

Badgeforappicon
The unread badges of the android launcher icon.
Stars: ✭ 83 (-87.31%)
Mutual labels:  badge, badges
autobadge
Simple CLI tool to generate essential repository badges with ease
Stars: ✭ 16 (-97.55%)
Mutual labels:  badge, badges
Badges4 Readme.md Profile
👩‍💻👨‍💻 Improve your README.md profile with these amazing badges.
Stars: ✭ 929 (+42.05%)
Mutual labels:  badge, badges
vscode-exts
Visual Studio Code Extensions
Stars: ✭ 33 (-94.95%)
Mutual labels:  badge, badges
laravel-gamify
Laravel Gamify: Gamification System with Points & Badges support
Stars: ✭ 35 (-94.65%)
Mutual labels:  badge, badges
badgemaker
The Nim badgemaker tool.
Stars: ✭ 15 (-97.71%)
Mutual labels:  badge, badges
Google Play Badge Svg
Hosting for localized versions of Google Play badges in SVG format.
Stars: ✭ 137 (-79.05%)
Mutual labels:  badge, badges
MadeWithUnityBadges
GitHub-ReadMe-Bagdes displaying "Made With Unity" with the Unity-Logo, based on shields.io badges, in markdown
Stars: ✭ 17 (-97.4%)
Mutual labels:  badge, badges
Badger
A badge for any drawable 🔴
Stars: ✭ 58 (-91.13%)
Mutual labels:  badge, badges
github-profile-achievements
A collection listing all Achievements available on the GitHub profile 🏆
Stars: ✭ 1,060 (+62.08%)
Mutual labels:  badge, badges
Open Source Badges
Open Source & Licence Badges
Stars: ✭ 368 (-43.73%)
Mutual labels:  badge, badges
Laravel Gamify
Gamify your Laravel app with Reputation Points & Achievements Badges support
Stars: ✭ 422 (-35.47%)
Mutual labels:  badges
Slwidget
轮子合集。角标、滚动选择器、自动换行布局、侧滑返回。
Stars: ✭ 363 (-44.5%)
Mutual labels:  badge
Handycontrols
Contains some simple and commonly used WPF controls based on HandyControl
Stars: ✭ 347 (-46.94%)
Mutual labels:  badge
Gorganizer
Organize your folders into a beautiful classified folder structure with this perfect tool
Stars: ✭ 318 (-51.38%)
Mutual labels:  badge
Dsltablayout
♥️ Android界最万能的TabLayout(不仅仅是TabLayout), 支持任意类型的item, 支持Drawable类型的指示器,智能开启滚动,支持横竖向布局等
Stars: ✭ 489 (-25.23%)
Mutual labels:  badge
Svg2shenzhen
Convert Inkscape SVG drawings to KiCad PCB and footprint modules
Stars: ✭ 413 (-36.85%)
Mutual labels:  badge
Kratos Boilerplate
🔥 A simple boilerplate for creating statics PWA using Webpack, Pug, PostCSS and CSS Modules
Stars: ✭ 308 (-52.91%)
Mutual labels:  badge
Xamarin Forms Tab Badge
Xamarin Forms bindable Tab badges for iOS, Android, UWP, MacOS and WPF
Stars: ✭ 304 (-53.52%)
Mutual labels:  badge
Badge Size
🍻 Displays the size of a given file in your repository.
Stars: ✭ 277 (-57.65%)
Mutual labels:  badge

BadgeView

a BadeView base on android

include:

     compile 'com.allenliu.badgeview:library:1.1.1'(newest)

bind like this:

 BadgeFactory.create(this)
.setTextColor(Color.White)
.setWidthAndHeight(25,25)
.setBadgeBackground(Color.Red)
.setTextSize(10)
.setBadgeGravity(Gravity.Right|Gravity.Top)
.setBadgeCount(20)
.setShape(BadgeView.SHAPE_CIRCLE)
.setSpace(10,10)
.bind(view);

if u want to set space dont use setMargin(),use setSpace instead.

There are some other constructer methods and you can be easy to create your own shape :

BadgeFactory.createDot(this).setBadgeCount(20).bind(imageView);
BadgeFactory.createCircle(this).setBadgeCount(20).bind(imageView);
BadgeFactory.createRectangle(this).setBadgeCount(20).bind(imageView);
BadgeFactory.createOval(this).setBadgeCount(20).bind(imageView);
BadgeFactory.createSquare(this).setBadgeCount(20).bind(imageView);
BadgeFactory.createRoundRect(this).setBadgeCount(20).bind(imageView);

unbind view just use unbind method.

 badgeView.unbind();

history version

  • v1.0.6   add setMarginmethod,using this method you can change the position of badgeview,but the width of bindview or the height of bindview will be changed.see image effect.

  • v1.1.1 add setSpacemethod,it replace origin method setMargin.now setMargin is a Deprecated method.Use setSpace method to set space between view and badgeview instead.

License

    Copyright 2016 AllenLiu.

    Licensed to the Apache Software Foundation (ASF) under one or more contributor
    license agreements. See the NOTICE file distributed with this work for
    additional information regarding copyright ownership. The ASF licenses this
    file to you 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 at

    http://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.

welecome to star,thank you.

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].