I made two tabs in TabLayout to display fragments (tabs) in ViewPager. There was a need to change the label in the toolbar in each of the fragments. I tried to create an actiobar for each tab, but in one of them I need to make a menu, and in my case this option is not suitable. How to make the label change in each fragment?