Android replace the current fragment with another fragment
Then provided your button is showing and the click event is being fired you can call the following in your click event: final FragmentTransaction ft = getFragmentManager().beginTransaction(); ft.replace(R.id.details, new NewFragmentToReplace(), “NewFragmentTag”); ft.commit(); and if you want to go back to the DetailsFragment on clicking back ensure you add the above transaction to the back stack, … Read more