SmoothBottomBar icon indicating copy to clipboard operation
SmoothBottomBar copied to clipboard

Issue with NoActionbar theme

Open deb-anndy opened this issue 4 years ago • 8 comments

very cool !! lib. i am using NoActionBar theme(i.e Theme.AppCompat.Light.NoActionBar / Theme.MaterialComponents.Light.NoActionBar) in this case fragment is not changing according to menu item. In DarkActionBar it works fine.

deb-anndy avatar Jun 01 '20 14:06 deb-anndy

Can confirm , navigation using navigation components breaks when using NoActionBar themes

kriticalflare avatar Jun 06 '20 07:06 kriticalflare

@kriticalflare

Yes @DebRockz is right, with NoActionbar theme, library not works

rajam1215 avatar Jun 06 '20 12:06 rajam1215

Same problem here..cannot use it with navigation components as my theme is of NoActionBar

here is a Quick Workaround -

    val menu = PopupMenu(this,null).menu
    menuInflater.inflate(R.menu.home_menu,menu)
    bottomBar.setupWithNavController(menu,navController)

Though I am really looking for a fix from the library authors

kaustav07 avatar Jun 14 '20 20:06 kaustav07

@DebRockz library does not work with NoActionbar theme, but you can hide the action bar supportActionBar!!.hide()

mohammadbabaeitb avatar Jun 17 '20 04:06 mohammadbabaeitb

hello @ibrahimsn98 how to fix bottomBar.setupWithNavController(menu,navController) ?

ekifimo avatar Jun 24 '20 09:06 ekifimo

I experience this issue too

wiryadev avatar Sep 28 '20 15:09 wiryadev

Same here! NoActionbar themes break navigation.

sebastinto avatar Oct 11 '20 01:10 sebastinto

please i have the same issue not working without actionBar

johnmbiya avatar Dec 10 '20 09:12 johnmbiya