All Projects → qstumn → Badgeview

qstumn / Badgeview

Licence: apache-2.0
支持自由定制外观、拖拽消除的MaterialDesign风格Android BadgeView

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Badgeview

Badges
Swift version of AXBadgeView. Show badge on any view with autolayout and animations.
Stars: ✭ 67 (-98.31%)
Mutual labels:  badge, badgeview
Bgabadgeview Android
Android 徽章控件
Stars: ✭ 2,561 (-35.43%)
Mutual labels:  badge, badgeview
Yeebadge
badgeView for UIView Inspired by WZLBadge,using UIImage to avoid off-screen rendering
Stars: ✭ 33 (-99.17%)
Mutual labels:  badge
Swift Badge
A badge view for iOS/tvOS written in Swift
Stars: ✭ 379 (-90.44%)
Mutual labels:  badge
Gorganizer
Organize your folders into a beautiful classified folder structure with this perfect tool
Stars: ✭ 318 (-91.98%)
Mutual labels:  badge
ETBadge
A tool of swift to add or clear badge for any UIView。You can use it easily, also can custom it.
Stars: ✭ 19 (-99.52%)
Mutual labels:  badge
Materialhome
一个基于 Material Design 风格设计的图书展示类App,豆瓣图书,在线电子书。
Stars: ✭ 331 (-91.65%)
Mutual labels:  materialdesign
SPYZIER-APP
Android spying app and Parental controller app.
Stars: ✭ 156 (-96.07%)
Mutual labels:  materialdesign
Substats
📈📉 Shhhh...we're counting your subscribers!
Stars: ✭ 396 (-90.02%)
Mutual labels:  badge
Kratos Boilerplate
🔥 A simple boilerplate for creating statics PWA using Webpack, Pug, PostCSS and CSS Modules
Stars: ✭ 308 (-92.23%)
Mutual labels:  badge
Open Source Badges
Open Source & Licence Badges
Stars: ✭ 368 (-90.72%)
Mutual labels:  badge
Xamarin Forms Tab Badge
Xamarin Forms bindable Tab badges for iOS, Android, UWP, MacOS and WPF
Stars: ✭ 304 (-92.33%)
Mutual labels:  badge
NetStalker
A network tool to control the bandwidth over your local network.
Stars: ✭ 69 (-98.26%)
Mutual labels:  materialdesign
Handycontrols
Contains some simple and commonly used WPF controls based on HandyControl
Stars: ✭ 347 (-91.25%)
Mutual labels:  badge
badgemaker
The Nim badgemaker tool.
Stars: ✭ 15 (-99.62%)
Mutual labels:  badge
Cordova Plugin Badge
Access and modify badge numbers
Stars: ✭ 386 (-90.27%)
Mutual labels:  badge
SuperBadge
🚀 📛 SuperBadge Android Library 🔥
Stars: ✭ 34 (-99.14%)
Mutual labels:  badge
Badge Size
🍻 Displays the size of a given file in your repository.
Stars: ✭ 277 (-93.02%)
Mutual labels:  badge
Fabsmenu
A simple library to use a menu of FloatingActionButtons from Design Support Library that follow Material Design Guidelines
Stars: ✭ 324 (-91.83%)
Mutual labels:  materialdesign
Android Fly Materialdesign
Android Activity换场动画类 :通用Activity换场动画,高级Activity换场动画 APP打开引导页:图片引导,视频引导 导航菜单类:TabLayout菜单、FragmentTabHost菜单、FragmentTabHost菜单 + ViewPager菜单、菜单拖拉重新排列、可删除 广告轮播类 数据列表类:RecycleView可拖拉重新排列、可删除 Material Design支持库相关效果 日历相关效果:高仿小米日历、年月切换动画、滚动年日历、滚动月日历、左右翻页月日历
Stars: ✭ 399 (-89.94%)
Mutual labels:  materialdesign

该项目已废弃停止维护, 请不要再您的生产环境中使用

BadgeView

Download

一个可以自由定制外观、支持拖拽消除的MaterialDesign风格Android BadgeView

一些特性

  • 随意定制外观,包括Badge位置、底色、边框、阴影、文字颜色(支持透明色)、大小、内外边距等

  • Badge数字小于0时显示dot,等于0时隐藏整个Badge,在普通模式下超过99时显示99+,精确模式下显示具体值

  • 支持设置文本内容

  • 支持设置图片背景

  • 支持类似QQ的拖拽消除效果(默认关闭)

  • 支持以动画的方式隐藏Badge

how to use:

1. gradle

    compile 'q.rorbin:badgeview:1.1.3'

VERSION_CODE : here

2. code

new QBadgeView(context).bindTarget(textview).setBadgeNumber(5);

3. 方法说明

code 说明
setBadgeNumber 设置Badge数字
setBadgeText 设置Badge文本
setBadgeTextSize 设置文本字体大小
setBadgeTextColor 设置文本颜色
setExactMode 设置是否显示精确模式数值
setBadgeGravity 设置Badge相对于TargetView的位置
setGravityOffset 设置外边距
setBadgePadding 设置内边距
setBadgeBackgroundColor 设置背景色
setBadgeBackground 设置背景图片
setShowShadow 设置是否显示阴影
setOnDragStateChangedListener 打开拖拽消除模式并设置监听
stroke 描边
hide 隐藏Badge

4.在ListView或者RecyclerView中使用

可参考demo中ListViewActivityRecyclerViewActivity

5.一些注意事项

  • 请不要在xml中创建Badge
  • Badge和TargetView绑定是采用替换TargetView的Parent方式实现的,同时将Parent的Id和TargetView的Id设置成一样来保证不会在RelativeLayout中出现位置错乱问题,所以在bindTarget后再次使用findViewById(TargetViewId)得到的会是Parent而不是TargetView,此时建议使用Badge.getTargetView方法来获取TargetView,如果您有更好的解决方式并愿意和我分享,请在Issues中提交给我或者给我发邮件,谢谢。

6.更新计划

添加富文本内容

LICENSE

Copyright 2017, RorbinQiu

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