I have try to close the current fragment by using Imagebutton.
I am in Fragment-A and it will turn to the Fragment-B when I click the button.
And when I clic
For those who need to figure out simple way
Try getActivity().onBackPressed();
getActivity().onBackPressed();