Access toolbar on Button click to save the fragment data

I am creating toobar on button and bottom five tabs fragment in android I am click on onclick button and save the all the fragment data How to access this.... Any one Suggest me...

enter image description here