Android 7英寸平板电脑方向查询

Android 7英寸平板电脑方向查询,android,orientation,screen-orientation,android-orientation,Android,Orientation,Screen Orientation,Android Orientation,我已经创建了一个android应用程序,它可以在手机(纵向)和10英寸平板电脑(横向)上正常工作。但问题在于7英寸平板电脑。它以纵向模式打开,但使用平板电脑的用户界面。所以用户界面看起来完全分散了注意力。我想在7英寸的横向模式下打开应用程序。怎么可能通过代码。。。?如有任何建议,将不胜感激,。提前谢谢 清单文件声明--- 我最好留下评论,但我的声誉还不够。 您应该在layout land目录中定义一些布局,而不仅仅是layout land land large。 看起来您的平板电脑屏幕不是很大,

我已经创建了一个android应用程序,它可以在手机(纵向)和10英寸平板电脑(横向)上正常工作。但问题在于7英寸平板电脑。它以纵向模式打开,但使用平板电脑的用户界面。所以用户界面看起来完全分散了注意力。我想在7英寸的横向模式下打开应用程序。怎么可能通过代码。。。?如有任何建议,将不胜感激,。提前谢谢

清单文件声明---


我最好留下评论,但我的声誉还不够。
您应该在layout land目录中定义一些布局,而不仅仅是layout land land large。

看起来您的平板电脑屏幕不是很大,并且没有非大屏幕横向模式的布局。

我最好留下评论,但还没有获得足够的声誉。
您应该在layout land目录中定义一些布局,而不仅仅是layout land land large。

看起来您的平板电脑屏幕不是很大,并且没有非大屏幕横向模式的布局。

我最好留下评论,但还没有获得足够的声誉。
您应该在layout land目录中定义一些布局,而不仅仅是layout land land large。

看起来您的平板电脑屏幕不是很大,并且没有非大屏幕横向模式的布局。

我最好留下评论,但还没有获得足够的声誉。
您应该在layout land目录中定义一些布局,而不仅仅是layout land land large。

看起来您的平板电脑屏幕不太大,并且没有非大型横向模式的布局。

在/res目录中创建一个文件夹作为
layout xlarge land
,另一个文件夹作为
layout large land
,在两个文件夹中保留相同的文件,就完成了

这些是建议您放置文件的文件夹,这不是完整的列表,但可以附加许多

layout-xlarge-land  landscape for 10 inch tablets and 10.1
layout-xlarge-port portrait for 10 inch tablets and 10.1
layout-large-land landscape for 7 inch tablets and 7.1
layout-large-port portrait for 7 inch tablets and 7.1

在这些文件夹之间移动布局文件以正确使用它

在/res目录中创建一个文件夹作为
layout xlarge land
,另一个文件夹作为
layout large land
,在两个文件夹中保留相同的文件,就完成了

这些是建议您放置文件的文件夹,这不是完整的列表,但可以附加许多

layout-xlarge-land  landscape for 10 inch tablets and 10.1
layout-xlarge-port portrait for 10 inch tablets and 10.1
layout-large-land landscape for 7 inch tablets and 7.1
layout-large-port portrait for 7 inch tablets and 7.1

在这些文件夹之间移动布局文件以正确使用它

在/res目录中创建一个文件夹作为
layout xlarge land
,另一个文件夹作为
layout large land
,在两个文件夹中保留相同的文件,就完成了

这些是建议您放置文件的文件夹,这不是完整的列表,但可以附加许多

layout-xlarge-land  landscape for 10 inch tablets and 10.1
layout-xlarge-port portrait for 10 inch tablets and 10.1
layout-large-land landscape for 7 inch tablets and 7.1
layout-large-port portrait for 7 inch tablets and 7.1

在这些文件夹之间移动布局文件以正确使用它

在/res目录中创建一个文件夹作为
layout xlarge land
,另一个文件夹作为
layout large land
,在两个文件夹中保留相同的文件,就完成了

这些是建议您放置文件的文件夹,这不是完整的列表,但可以附加许多

layout-xlarge-land  landscape for 10 inch tablets and 10.1
layout-xlarge-port portrait for 10 inch tablets and 10.1
layout-large-land landscape for 7 inch tablets and 7.1
layout-large-port portrait for 7 inch tablets and 7.1

在这些文件夹之间移动布局文件以正确使用它

最后,我得到了答案。我改变了我的清单文件…就像

  <activity
        android:name=".MainActivityTheme"
        android:label="@string/app_name"
        android:configChanges="keyboardHidden|screenSize|orientation">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
并将所有布局文件移动到布局大文件夹中,而不是布局大区域。
谢谢你们的帮助。

最后,我得到了答案。我改变了我的清单文件…就像

  <activity
        android:name=".MainActivityTheme"
        android:label="@string/app_name"
        android:configChanges="keyboardHidden|screenSize|orientation">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
并将所有布局文件移动到布局大文件夹中,而不是布局大区域。
谢谢你们的帮助。

最后,我得到了答案。我改变了我的清单文件…就像

  <activity
        android:name=".MainActivityTheme"
        android:label="@string/app_name"
        android:configChanges="keyboardHidden|screenSize|orientation">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
并将所有布局文件移动到布局大文件夹中,而不是布局大区域。
谢谢你们的帮助。

最后,我得到了答案。我改变了我的清单文件…就像

  <activity
        android:name=".MainActivityTheme"
        android:label="@string/app_name"
        android:configChanges="keyboardHidden|screenSize|orientation">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
并将所有布局文件移动到布局大文件夹中,而不是布局大区域。

谢谢大家的帮助。

您使用了哪些文件夹来保存10英寸的布局文件?其布局-大-地。您希望在7英寸的土地上打开与10英寸相同的布局?请检查下面我编辑的答案您使用了哪些文件夹来保存10英寸的布局文件?其布局-大-地。您希望在7英寸的土地上打开与10英寸相同的布局10英寸??检查下面我编辑的答案您使用过哪些文件夹将布局文件保留为10英寸?其布局-large-land。您希望在land中以7英寸打开的布局与10英寸相同??检查下面我编辑的答案您使用过哪些文件夹将布局文件保留为10英寸?其布局-large-land。您希望在land中以7英寸打开什么布局英寸与10英寸相同??请检查我编辑的答案。我会试试。并让你知道。嗨,我已经按照你说的做了…现在UI在全屏上看起来不错…但它在纵向模式下显示,而不是将其方向更改为横向。好的。我会试试。并让你知道。嗨,我已经按照你说的做了…现在UI在全屏上看起来不错…但它在纵向模式下显示,没有改变方向为横向。好的..我会试试..让你知道。嗨,我已经按照你说的做了…现在UI在全屏上看起来不错…但它在纵向模式下显示,没有将方向更改为横向。好的..我会试试..并让你知道。嗨,我已经按照你说的做了…现在UI在全屏上看起来不错…但它在纵向模式下显示,没有将方向更改为横向。嗨,我已经按照你说的做了…现在UI在全屏上看起来不错…但是它在纵向模式下显示,没有改变它的方向到横向。你说它没有改变是什么意思?你是否创建了其他文件夹和带有
-port
后缀的相应布局?嗨,我已经按照你说的做了…现在UI在全屏上看起来很好…但是它在纵向模式下显示,没有将方向更改为横向。你说它没有更改是什么意思?你是否创建了其他文件夹和带有
-port
后缀的相应布局?嗨,我已经按照你说的做了…现在UI在全屏上看起来不错…但是它在纵向模式下显示,没有改变它的