I want my android application to be only run in portrait mode?

前端 未结 6 2029
温柔的废话
温柔的废话 2020-11-30 16:26

I want my android application to be only run in portrait mode? How can I do that?

6条回答
  •  无人及你
    2020-11-30 17:18

    I use

     android:screenOrientation="nosensor"
    

    It is helpful if you do not want to support up side down portrait mode.

提交回复
热议问题