I have two fragments, one is for folder and other is for photos in Tab layout. Photos fragment have many photos when I select one item(picture) I want to change the toolbar entirely like
below

how i will do this and have to listen clicks events on toolbar?
just put it in your fragment get your Actvity toolbar with id
and set toolbar as u desired in your fragment
Toolbar toolbar = (Toolbar) getActivity().findViewById(R.id.toolbar);
toolbar.setTitle("title");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With