DeweyNavigationBar

open class DeweyNavigationBar : AppBarLayout

A AppBarLayout that used as navigation bar, which contains a DeweyToolbar. It supports setting title, subtitle, navigation icon, menu and click listener.

Constructors

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

Types

Link copied to clipboard
open class DeweyNavigationBarBehavior : AppBarLayout.BaseBehavior<T>

Functions

Link copied to clipboard
Link copied to clipboard
Get the subtitle of the navigation bar.
Link copied to clipboard
Get the title of the navigation bar.
Link copied to clipboard
open fun inflateMenu(@MenuRes menuResId: Int)
Inflate the menu of the navigation bar.
Link copied to clipboard
open fun setAssociatedView(@Nullable view: View)
Set the associated view of the navigation bar.
Link copied to clipboard
open fun setNavigationIcon(@DrawableRes resId: Int)
Set the navigation icon of the navigation bar.
Link copied to clipboard
Set the tint of the navigation icon.
Link copied to clipboard
Set the click listener of the navigation icon.
Link copied to clipboard
Set the click listener of the menu items.
Link copied to clipboard
open fun setSubtitle(@StringRes resId: Int)
open fun setSubtitle(@Nullable subtitle: CharSequence)
Set the subtitle of the navigation bar.
Link copied to clipboard
open fun setSubtitleTextAppearance(@NonNull context: Context, @StyleRes resId: Int)
Set the text appearance of the subtitle.
Link copied to clipboard
open fun setSubtitleTextColor(@ColorInt color: Int)
Set the subtitle text color of the navigation bar.
Link copied to clipboard
open fun setTitle(@StringRes resId: Int)
open fun setTitle(@Nullable title: CharSequence)
Set the title of the navigation bar.
Link copied to clipboard
open fun setTitleTextAppearance(@NonNull context: Context, @StyleRes resId: Int)
Set the text appearance of the title.
Link copied to clipboard
open fun setTitleTextColor(@ColorInt color: Int)
Set the title text color of the navigation bar.
Link copied to clipboard
Setup the navigation bar as the action bar of activity.