Css RhoMobile:锁定纵向视图
我正在RhoMobile中开发一个应用程序,它要求只在纵向视图中显示内容 我试过:Css RhoMobile:锁定纵向视图,css,jquery-mobile,rhomobile,rhodes,Css,Jquery Mobile,Rhomobile,Rhodes,我正在RhoMobile中开发一个应用程序,它要求只在纵向视图中显示内容 我试过: disable_screen_rotation = 1 //in rhoconfig.txt 而且它不起作用。我知道avobe只在iPhone和Android上运行,但对我来说不起作用 我也尝试过修改 Rhodes.java至: this.setRequestedOrientation(disableScreenRotation ? ActivityInfo.SCREEN_ORIENTATION_LANDSC
disable_screen_rotation = 1 //in rhoconfig.txt
而且它不起作用。我知道avobe只在iPhone和Android上运行,但对我来说不起作用
我也尝试过修改
Rhodes.java至:
this.setRequestedOrientation(disableScreenRotation ?
ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE :
ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
问题是我使用的是Rhodes 3.4.1,我找不到Rhodes.java的位置。
我可以用JQM和CSS来实现这一点吗?(我认为这不是一个好主意,但我可能错了。)
非常感谢您的帮助
android:
orientation: portrait
iphone:
orientation: portrait
您最后所做的每一件事都知道,实现这一点的唯一成功方法是更改平台配置文件。RhoMobile将要求您更改build.yml,您可以更改平台配置文件,但它们将在构建状态下被重写。我找到了解决方案。。。我刚刚修改了rhodes/platform/android/rhodes/AndroidManifest.xml
<activity android:name="MainActivity" android:configChanges="portrait">
为什么要投否决票?请解释一下,这样我才能修好它。毫无理由地否决投票是没有建设性的。
<activity android:name="MainActivity" android:configChanges="portrait">