简体   繁体   English

平板电脑处于横向模式时,纵向布局会消失

[英]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.

相关问题 平板电脑Android中的横向和纵向模式 - Landscape and portrait mode in tablet Android 平板电脑的肖像(Android-Layout) - Portrait for phone, landscape for Tablet (Android-Layout) 横向和纵向模式布局问题 - Landscape And Portrait Mode Layout Problems 在横向和纵向模式之间切换时如何保持布局? - How to maintain the layout when switching between landscape and portrait mode? 在横向模式下如何使用平板电脑专用的布局? - How to use tablet-specific layout when in landscape mode? 在Android Tablet(Samsung 10.1)中在横向模式和纵向模式之间切换 - switch between landscape mode and portrait mode in Android Tablet(Samsung 10.1) 为7英寸平板电脑创建特定布局,用于纵向/横向更改布局 - Create specific layout for 7 inch tablet for portrait /landscape changing the layout 平板电脑布局,使用纵向片段代替横向布局 - Tablet layout, use portrait fragment instead of landscape layout 当键盘打开时,纵向模式被误解为横向 - Portrait mode gets misinterpreted as landscape when keyboard is on 在android中从纵向模式切换到横向模式时如何避免更改图像和布局位置 - How to avoid changing of image and layout position when changing from portrait to landscape mode in android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM