AndroidBottomBar / com.skydoves.androidbottombar / BottomMenuItemView

BottomMenuItemView

class BottomMenuItemView : FrameLayout

BottomMenuItemView is an bottom menu item view with badges and selected/unselected animations. Composed to title, icon, and badge.

Constructors

<init>

BottomMenuItemView is an bottom menu item view with badges and selected/unselected animations. Composed to title, icon, and badge.

BottomMenuItemView(context: Context, attrs: AttributeSet? = null)

Properties

config

var config: BottomMenuItemViewConfig?

onMenuItemClickListener

var onMenuItemClickListener: (config: BottomMenuItemViewConfig?, view: BottomMenuItemView) -> Unit?

Functions

dismissBadge

dismisses the badge.

fun dismissBadge(): <ERROR CLASS>

onSizeChanged

fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int): Unit

selectedBottomBarItem

updates and animates for a selected bottom bar item.

fun selectedBottomBarItem(): Unit

showBadge

shows the badge with a changed text and appearing animation.

fun showBadge(badgeText: CharSequence?): Unit

unselectedBottomBarItem

updates and animates for an unselected bottom bar item.

fun unselectedBottomBarItem(): Unit