Skip to content

Albert-Wang-Hipmunk/toolbar_playground

Repository files navigation

Some toolbar resources

here

to let the content width match_parent:

  • you can use relative layout as the parent and it will do the work

or

  • get the actionbar and set the custom view manually with layout params to match parent
supportActionBar?.displayOptions = ActionBar.DISPLAY_SHOW_CUSTOM
val params = ActionBar.LayoutParams(
    ActionBar.LayoutParams.MATCH_PARENT,
    ActionBar.LayoutParams.MATCH_PARENT
)
supportActionBar?.setCustomView(customToolbarContent2, params)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages