Before answering the next time, be sure to add your code. Most likely, my answer will not help you as much as possible, because I really do not know your code.
This is old, but in any case, if I understand your question (and the architecture of the application) correctly, it looks like a case of interaction.
Example:
add this interface as a member of the content fragment:
public class ContentFragment extends Fragment{ public interface onFragmentTitleHighlighted{ public void highLightTitle(String title); } }
and have a title fragment. Be sure to equip the pieces of content with the fragmnet header and add a call to highLightTitle(String title);
in the onCreateView (...) call content snippet. Thus, whenever new fragmnet content is added, the header will be highlighted.
user1545072
source share