FragmantClass rSum = new FragmantClass(); getSupportFragmentManager().beginTransaction().remove(rSum).commit();
I am trying to remove this fragm
More simple, you can replace the main content with an empty fragment, so that the main activity is viewed only.
getFragmentManager() .beginTransaction() .replace(main_content,new Fragment()) .commit();