My app has a single Activity with a FragmentPagerAdapter with four fragments (Using the ViewPagerIndicator library). One of these fragments has designs for both a separate p
If you want to change it to landscape for specific fragment, consider this. Remember to change it back to stopsActivityInfo.SCREEN_ORIENTATION_PORTRAIT on fragment's lifecycle stop
@Nullable
@Override
public View onCreateView(@NotNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
requireActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
return inflater.inflate(R.layout.YOUR_LAYOUT, container, false);
}