I've recently stumbled upon this library and just started using it because it suits my needs. Given the fact I am a beginner I wanted to know if you can provide some sample or code snippet of how I can use onTabTransaction and onFragmentTransaction?
For example, in one of the tabs I am pushing a second fragment. If I go to the hardware back button, it does what it is supposed to do, pops the fragment. But, I also have a custom toolbar in that particular fragment which has a back button. I would like to pop the fragment when I click the button. How can I implement this functionality? Also, something like if the fragment is an instance of the root fragment but it's not the root, I would like to show a back button.
I am interested on how to use these kind of functionalities. if it's not hassle please provide some more information.
I've recently stumbled upon this library and just started using it because it suits my needs. Given the fact I am a beginner I wanted to know if you can provide some sample or code snippet of how I can use
onTabTransaction
andonFragmentTransaction
? For example, in one of the tabs I am pushing a secondfragment
. If I go to the hardware back button, it does what it is supposed to do, pops thefragment
. But, I also have a customtoolbar
in that particularfragment
which has a back button. I would like to pop thefragment
when I click the button. How can I implement this functionality? Also, something like if thefragment
is an instance of theroot fragment
but it's not the root, I would like to show a back button. I am interested on how to use these kind of functionalities. if it's not hassle please provide some more information.Cheers!