I would like to replicate the screen rotation effect of Youtube in my app. When the fullscreen-toggle button is clicked in portrait mode, the screen rotates to a landscape full-screen mode but still gives the user the option to choose screen orientation when the device is rotated. This is exactly what I need to implement, but setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT/LANDSCAPE)
set the screen fixed in a particular orientation mode without the option of changing it back by rotation.
Can someone please help me with hints on how to achieve this?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…