BadgeLayout

class BadgeLayout @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.Default_BadgeLayout_Style, @StyleRes defStyleRes: Int = R.style.BaseBadgeLayout) : FrameLayout

Badge Layout.

Since

0.5.3

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.Default_BadgeLayout_Style, @StyleRes defStyleRes: Int = R.style.BaseBadgeLayout)

Properties

Link copied to clipboard
private val mBadgeView: <Error class: unknown class>
Link copied to clipboard
private val mBinding: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var mColor: Int
Link copied to clipboard
Link copied to clipboard
private var mIcon: Int

The icon resources id.

Link copied to clipboard

The padding of the mIcon.

Link copied to clipboard
Link copied to clipboard
val mState: <Error class: unknown class>

Functions

Link copied to clipboard
fun hideDot()
Link copied to clipboard
protected open override fun onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
protected open override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int)
Link copied to clipboard
fun setIconPadding(@FloatRange(from = 0.0) top: Float = 0.0f, @FloatRange(from = 0.0) start: Float = 0.0f, @FloatRange(from = 0.0) end: Float = 0.0f, @FloatRange(from = 0.0) bottom: Float = 0.0f)

Set icon margin.

Link copied to clipboard
fun showDot()