public interface BGABadgeable
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
callSuperOnTouchEvent(MotionEvent event)
调用父类的onTouchEvent方法
|
Context |
getContext() |
boolean |
getGlobalVisibleRect(Rect r) |
int |
getHeight() |
int |
getId() |
ViewParent |
getParent() |
int |
getWidth() |
void |
hiddenBadge()
隐藏徽章
|
boolean |
isShowBadge()
是否显示徽章
|
void |
postInvalidate() |
void |
setDragDismissDelegage(BGADragDismissDelegate delegate)
拖动大于BGABadgeViewHelper.mMoveHiddenThreshold后抬起手指徽章消失的代理
|
void |
showCirclePointBadge()
显示圆点徽章
|
void |
showDrawableBadge(Bitmap bitmap)
显示图像徽章
|
void |
showTextBadge(String badgeText)
显示文字徽章
|
void showCirclePointBadge()
void showTextBadge(String badgeText)
badgeText - void hiddenBadge()
void showDrawableBadge(Bitmap bitmap)
bitmap - boolean callSuperOnTouchEvent(MotionEvent event)
event - void setDragDismissDelegage(BGADragDismissDelegate delegate)
delegate - boolean isShowBadge()
int getWidth()
int getHeight()
void postInvalidate()
ViewParent getParent()
int getId()
boolean getGlobalVisibleRect(Rect r)
Context getContext()