I have an activity(let's call it Home Activity) with bottom navigation view where I replace all of my fragments. In Home Activity I have loaded a fragment which has a search icon. That search icon redirects to an activity that is Search Activity.
When I click any of the search result I go to my Home Activity and replace the previous fragment to show my recent search result click implementation.
In this case, the complexity is - when I'm trying to replace the previous fragment - it's visible to the user. And as I have a transition animation - I can see the previous fragment is exiting and the latest fragment is entering.
This is not at all a good experience for the user. How may I improve the functionality so that previous fragment is not visible to the user?