[英]portrait layout apears when the tablet is on landscape mode
when I run my android app on tablet in landscape mode the apps apears from right to left (as if it is portrait mode) not up to down, how to fix that? 当我以横向模式在平板电脑上运行我的android应用时,这些应用从右至左(好像是纵向模式)从上到下依次显示,该如何解决?
you can find a snapshot here: http://i.stack.imgur.com/vpO9M.jpg 您可以在此处找到快照: http : //i.stack.imgur.com/vpO9M.jpg
I am trying to make my app compatible with tablets I created the layout res for large screens and x large screens (layout-xlarge, layout-xlarge-land, layout-large and layout-large-land) and I added this to my androidManifest.xml file: 我试图使我的应用程序与平板电脑兼容,为大屏幕和x大屏幕(layout-xlarge,layout-xlarge-land,layout-large和layout-large-land)创建了布局资源,并将其添加到了androidManifest中.xml文件:
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true" />
尝试在您的manifest.xml文件中的活动中添加它
android:configChanges="orientation|keyboardHidden|screenSize|layoutDirection"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.