AndroidBottomBar / com.skydoves.androidbottombar / BottomMenuItem

BottomMenuItem

open class BottomMenuItem

BottomMenuItem is a collection of BottomMenuItemView attributes. Composed to TitleForm, IconForm, and BadgeForm with fully customizable. Each builder of the form can be reused for setting up multiple menu items.

Constructors

<init>

BottomMenuItem is a collection of BottomMenuItemView attributes. Composed to TitleForm, IconForm, and BadgeForm with fully customizable. Each builder of the form can be reused for setting up multiple menu items.

BottomMenuItem(context: Context)

Properties

badgeForm

var badgeForm: Builder

iconForm

var iconForm: Builder

titleForm

var titleForm: Builder

Functions

build

returns a BottomMenuItem.

fun build(): BottomMenuItem

setBadge

sets a background drawable of the badge

fun setBadge(value: Drawable?): BottomMenuItem

setBadgeAnimation

sets an animation of the badge.

fun setBadgeAnimation(value: BadgeAnimation): BottomMenuItem

setBadgeAnimationInterpolator

sets an badge animation interpolator of the badge.

fun setBadgeAnimationInterpolator(value: BadgeAnimationInterpolator): BottomMenuItem

setBadgeColor

sets the color of the badge.

fun setBadgeColor(value: Int): BottomMenuItem

setBadgeColorRes

sets the color of the badge using resource.

fun setBadgeColorRes(value: Int): BottomMenuItem

setBadgeDuration

sets a duration of the badge.

fun setBadgeDuration(value: Long): BottomMenuItem

setBadgeForm

sets a customized BadgeForm.Builder.

fun setBadgeForm(value: Builder): BottomMenuItem

setBadgeGravity

sets gravity of the badge.

fun setBadgeGravity(value: Int): BottomMenuItem

setBadgeMargin

sets the margin of the badge.

fun setBadgeMargin(value: Int): BottomMenuItem

setBadgePadding

sets the padding of the badge.

fun setBadgePadding(value: Int): BottomMenuItem

setBadgePaddingBottom

sets the bottom padding of the badge.

fun setBadgePaddingBottom(value: Int): BottomMenuItem

setBadgePaddingLeft

sets the left padding of the badge.

fun setBadgePaddingLeft(value: Int): BottomMenuItem

setBadgePaddingRight

sets the right padding of the badge.

fun setBadgePaddingRight(value: Int): BottomMenuItem

setBadgePaddingTop

sets the top padding of the badge.

fun setBadgePaddingTop(value: Int): BottomMenuItem

setBadgeRadius

sets the radius of the badge.

fun setBadgeRadius(value: Int): BottomMenuItem

setBadgeStyle

sets the Typeface of the badge.

fun setBadgeStyle(value: Int): BottomMenuItem

setBadgeText

sets the content of the badge.

fun setBadgeText(value: CharSequence): BottomMenuItem

sets the content of the badge using string resource.

fun setBadgeText(value: Int): BottomMenuItem

setBadgeTextColor

sets the text color of the badge.

fun setBadgeTextColor(value: Int): BottomMenuItem

setBadgeTextColorRes

sets the text color of the badge using resource.

fun setBadgeTextColorRes(value: Int): BottomMenuItem

setBadgeTextSize

sets the size of the badge.

fun setBadgeTextSize(value: Float): BottomMenuItem

setBadgeTypeface

sets the Typeface of the badge.

fun setBadgeTypeface(value: Typeface?): BottomMenuItem

setIcon

sets the Drawable of the icon.

fun setIcon(value: Drawable?): BottomMenuItem

sets the Drawable of the icon using resource.

fun setIcon(value: Int): BottomMenuItem

setIconColor

sets the color of the icon.

fun setIconColor(value: Int): BottomMenuItem

setIconColorRes

sets the color of the icon using resource

fun setIconColorRes(value: Int): BottomMenuItem

setIconForm

sets a customized IconForm.Builder.

fun setIconForm(value: Builder): BottomMenuItem

setIconSize

sets the size of the icon.

fun setIconSize(value: Int): BottomMenuItem

setTitle

sets the content of the title.

fun setTitle(value: CharSequence): BottomMenuItem

sets the content of the title using string resource.

fun setTitle(value: Int): BottomMenuItem

setTitleColor

sets the color of the title.

fun setTitleColor(value: Int): BottomMenuItem

setTitleColorRes

sets the color of the title using resource.

fun setTitleColorRes(value: Int): BottomMenuItem

setTitleForm

sets a customized TitleForm.Builder.

fun setTitleForm(value: Builder): BottomMenuItem

setTitleGravity

sets gravity of the title.

fun setTitleGravity(value: Int): BottomMenuItem

setTitlePadding

sets the padding of the title.

fun setTitlePadding(value: Int): BottomMenuItem

setTitleSize

sets the size of the title.

fun setTitleSize(value: Float): BottomMenuItem

setTitleTypeface

sets the Typeface of the title.

fun setTitleTypeface(value: Int): BottomMenuItem
fun setTitleTypeface(value: Typeface?): BottomMenuItem