I want to rotate an image only and not whole activity. So, when I apply
getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
The above line of code in a fragment rotates the image but when back to activity, fragment tabs also rotate. And when I change in manifest for portrait and landscape then whole activity rotated.
How to fix it?