Cómo cambiar la orientación de la pantalla en Android en Fragmetn programáticamente
In Fragments
getActivity().setRequestedOrientation(
ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
getActivity().setRequestedOrientation(
ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
android developer