我无法弄清楚为什么在一个活动的清单中设置"sensorPortrait"属性不能使活动进入反向纵向.这就是我在清单中设置的方式
<activity
android:name=".MainActivty"
android:label="Testing"
android:screenOrientation="sensorPortrait"
android:windowSoftInputMode="stateHidden"
android:configChanges="orientation">
</activity>
Run Code Online (Sandbox Code Playgroud)
以上代码对我来说无法在Moto E(4.4.4)或Galaxy S3(4.3)上同时获得reversePortrait和肖像,但我可以确认它适用于Nexus 7(5.0.1)平板电脑,我尝试了其他几个答案,但这个似乎是最简单的,它似乎不适合我的'手机',我错过了一些与此相关的信息吗?
我尝试了以下链接,这与我的问题类似,但对此没有任何帮助
目前使用标志"sensorPortrait",它的行为就像在手机中设置"肖像"一样.