NavigationBarItemView

SESL variant.

Provides a view that will be used to render destination items inside a .

Inheritors

Constructors

Link copied to clipboard
constructor(context: Context, viewType: Int)
constructor(@NonNull context: Context)
constructor(context: Context, attrs: AttributeSet, viewType: Int)
constructor(@NonNull context: Context, attrs: AttributeSet, defStyleAttr: Int, viewType: Int)

Types

Link copied to clipboard
A class used to manipulate the NavigationBarItemView's active indicator view when animating between hidden and shown.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var itemPosition: Int
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Get the drawable used as the active indicator.
Link copied to clipboard
Link copied to clipboard
open fun getBadgeType(): Int
Link copied to clipboard
open fun getLabel(): TextView
Link copied to clipboard
Link copied to clipboard
open fun getViewType(): Int
Link copied to clipboard
open fun initialize(@NonNull itemData: MenuItemImpl, menuType: Int)
Link copied to clipboard
open fun isExpanded(): Boolean
Whether or not the item's bar expanded state is expanded.
Link copied to clipboard
Whether or not to only show the item when expanded.
Link copied to clipboard
Link copied to clipboard
open fun onConfigurationChanged(configuration: Configuration)
Link copied to clipboard
open fun onCreateDrawableState(extraSpace: Int): Array<Int>
Link copied to clipboard
open fun onDraw(canvas: Canvas)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun seslSetLabelTextAppearance(textAppearance: Int)
Link copied to clipboard
Link copied to clipboard
open fun setActiveIndicatorDrawable(@Nullable activeIndicatorDrawable: Drawable)
Set the drawable to be used as the active indicator that contains the icon in the ITEM_ICON_GRAVITY_TOP configuration.
Link copied to clipboard
Set whether or not this item should show an active indicator when checked.
Link copied to clipboard
Set the height of the active indicator when it is expanded, ie.
open fun setActiveIndicatorExpandedMarginHorizontal(@Px marginHorizontal: Int)
Set the horizontal margin that will be maintained at the start and end of the expanded active indicator, making sure the indicator remains the given distance from the edge of this item view.
Link copied to clipboard
open fun setActiveIndicatorExpandedPadding(@NonNull itemActiveIndicatorExpandedPadding: Rect)
Set the padding of the active indicator when it is expanded to wrap its content.
Link copied to clipboard
Set the height of the active indicator when it is expanded, ie.
Link copied to clipboard
open fun setActiveIndicatorHeight(height: Int)
Set the desired height of the active indicator.
Link copied to clipboard
open fun setActiveIndicatorLabelPadding(activeIndicatorLabelPadding: Int)
Set the padding between the active indicator container and the item label.
Link copied to clipboard
open fun setActiveIndicatorMarginHorizontal(@Px marginHorizontal: Int)
Set the horizontal margin that will be maintained at the start and end of the active indicator, making sure the indicator remains the given distance from the edge of this item view.
Link copied to clipboard
Set whether the indicator can be automatically resized.
Link copied to clipboard
open fun setActiveIndicatorWidth(width: Int)
Set the desired width of the active indicator.
Link copied to clipboard
Link copied to clipboard
open fun setBadgeType(i: Int)
Link copied to clipboard
open fun setCheckable(checkable: Boolean)
Link copied to clipboard
open fun setChecked(checked: Boolean)
Link copied to clipboard
open fun setEnabled(enabled: Boolean)
Link copied to clipboard
open fun setExpanded(expanded: Boolean)
Update the bar expanded state in item.
Link copied to clipboard
open fun setHorizontalTextAppearanceActive(@StyleRes activeTextAppearance: Int)
Link copied to clipboard
open fun setHorizontalTextAppearanceInactive(@StyleRes inactiveTextAppearance: Int)
Link copied to clipboard
open fun setIcon(@Nullable iconDrawable: Drawable)
Link copied to clipboard
open fun setIconLabelHorizontalSpacing(iconLabelHorizontalSpacing: Int)
Set the horizontal distance between the icon and the item label which shows when the item is in the ITEM_ICON_GRAVITY_START configuration.
Link copied to clipboard
open fun setIconSize(iconSize: Int)
Link copied to clipboard
Link copied to clipboard
open fun setItemBackground(@Nullable background: Drawable)
open fun setItemBackground(background: Int)
Link copied to clipboard
open fun setItemGravity(itemGravity: Int)
Set the gravity of the item.
Link copied to clipboard
open fun setItemIconGravity(iconGravity: Int)
Link copied to clipboard
open fun setItemPaddingBottom(paddingBottom: Int)
Set the padding applied to the labels from the bottom of the item view.
Link copied to clipboard
open fun setItemPaddingTop(paddingTop: Int)
Set the padding applied to the icon/active indicator container from the top of the item view.
Link copied to clipboard
open fun setItemRippleColor(@Nullable itemRippleColor: ColorStateList)
Link copied to clipboard
open fun setLabelFontScalingEnabled(scaleLabelSizeWithFont: Boolean)
Link copied to clipboard
open fun setLabelImageSpan(spannableStringBuilder: SpannableStringBuilder)
Link copied to clipboard
open fun setLabelMaxLines(labelMaxLines: Int)
Link copied to clipboard
open fun setLabelVisibilityMode(mode: Int)
Link copied to clipboard
open fun setMeasureBottomPaddingFromLabelBaseline(measurePaddingFromBaseline: Boolean)
Link copied to clipboard
open fun setOnlyShowWhenExpanded(onlyShowWhenExpanded: Boolean)
Set whether or not to only show the item when expanded.
Link copied to clipboard
Link copied to clipboard
open fun setShifting(shifting: Boolean)
Link copied to clipboard
open fun setShortcut(showShortcut: Boolean, shortcutKey: Char)
Link copied to clipboard
open fun setShowButtonShape(i: Int, colorStateList: ColorStateList)
Link copied to clipboard
open fun setTextAppearanceActive(@StyleRes activeTextAppearance: Int)
Link copied to clipboard
open fun setTextAppearanceInactive(@StyleRes inactiveTextAppearance: Int)
Link copied to clipboard
Link copied to clipboard
open fun setTitle(@Nullable title: CharSequence)
Link copied to clipboard
open fun setViewType(viewType: Int)
Link copied to clipboard
open fun showsIcon(): Boolean
Link copied to clipboard
open fun updateActiveIndicatorLayoutParams(availableWidth: Int)
Update the active indicators width and height for the available width and label visibility mode.