Question : how to change orientation of screen in android in fragmetn programmatically
Answered by : hannan
In Fragments
getActivity().setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
getActivity().setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
Source : | Last Update : Tue, 16 Nov 21