我想在浮标上显示红点,代码如下
floatTipsView = BadgeFactory.create(mContext)
.setWidthAndHeight(8, 8)
.setBadgeBackground(Color.parseColor("#FF1014"))
.setBadgeGravity(Gravity.RIGHT | Gravity.TOP)
.setShape(BadgeView.SHAPE_CIRCLE)
.setMargin(0, 0, 0, 0)
.bind(FloatView.this);
但并没有显示出来,请问是什么原因?FloatView extends FrameLayout
我想在浮标上显示红点,代码如下
floatTipsView = BadgeFactory.create(mContext)
.setWidthAndHeight(8, 8)
.setBadgeBackground(Color.parseColor("#FF1014"))
.setBadgeGravity(Gravity.RIGHT | Gravity.TOP)
.setShape(BadgeView.SHAPE_CIRCLE)
.setMargin(0, 0, 0, 0)
.bind(FloatView.this);
但并没有显示出来,请问是什么原因?FloatView extends FrameLayout