Android 徽章控件 BGABadgeView

码农软件 · 软件分类 · Android UI 组件 · 2019-04-24 16:27:34

软件介绍

BGABadgeView 是 Android 自定义徽章控件。

效果图:

Image of RecyclerViewDemo Demo

依赖:

dependencies {
    compile 'com.nineoldandroids:library:2.4.0'
    compile 'cn.bingoogolapple:bga-badgeview:latestVersion@aar'
}

目前支持的徽章类:

类名应用场景
BGABadgeRadioButton微博首页底部导航
BGABadgeImageView微博列表用户头像
BGABadgeTextView其实这个可以用BGABadgeCheckedTextView代替
BGABadgeLinearLayout列表item右侧消息条数
BGABadgeRelativeLayout列表item右侧消息条数
BGABadgeFrameLayout列表item右侧消息条数

接口说明:

/**
 * 显示圆点徽章
 */
void showCirclePointBadge();

/**
 * 显示文字徽章
 *
 * @param badgeText
 */
void showTextBadge(String badgeText);

/**
 * 隐藏徽章
 */
void hiddenBadge();

/**
 * 显示图像徽章
 *
 * @param bitmap
 */
void showDrawableBadge(Bitmap bitmap);

/**
 * 设置拖动删除徽章的代理
 *
 * @param delegate
 */
void setDragDismissDelegage(BGADragDismissDelegate delegate);

/**
 * 是否显示徽章
 *
 * @return
 */
boolean isShowBadge();

本文地址:https://www.codercto.com/soft/d/4294.html

Head First 设计模式(中文版)

Head First 设计模式(中文版)

弗里曼 / O'Reilly Taiwan公司 / 中国电力出版社 / 2007-9 / 98.00元

《Head First设计模式》(中文版)共有14章,每章都介绍了几个设计模式,完整地涵盖了四人组版本全部23个设计模式。前言先介绍这本书的用法;第1章到第11章陆续介绍的设计模式为Strategy、Observer、Decorator、Abstract Factory、Factory Method、Singleton,Command、Adapter、Facade、TemplateMethod、I......一起来看看 《Head First 设计模式(中文版)》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

SHA 加密
SHA 加密

SHA 加密工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具