ncapdevi / FragNav

An Android library for managing multiple stacks of fragments
1.5k stars 210 forks source link

Different toolbar for each Fragment #209

Closed hosseinaminii closed 5 years ago

hosseinaminii commented 5 years ago

How to add different toolbar for each Fragment? setSupportActionBar does not work correctly

hosseinaminii commented 5 years ago

By changing FragNavController.DETACH_ON_NAVIGATE_HIDE_ON_SWITCH to FragNavController.DETACH the issue fixed, but I want to know, doesn't it cause any performance issue?

ncapdevi commented 5 years ago

Nope, it shouldn't cause any performance issues. But also setSupportActionBar should be working correctly. I'm not sure which lifecycle event you are using to set the support action bar, but the library has a normal fragment lifecycle, so it should definitely be doable.