Home

Awesome

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

BadgeView

Download

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

一些特性

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.一些注意事项

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.