[英]Android Screen Orientation: Landscape Back to Portrait
I have designed an activity that its orientation is landscape. 我设计的一项活动以景观为导向。 Also I have designed another that its orientation is portrait.
我还设计了另一个方向是纵向的。 When I run in my phone, there are some problems comes to when the landscape activity back to the portrait activity.
当我在手机上跑步时,从横向活动回到肖像活动会遇到一些问题。 Some of the layout disappear, such as below
一些布局消失了,例如下面
original: 原版的:
after 后
can anyone help me to solve this problem?Thank you so much! 谁能帮助我解决这个问题?非常感谢!
<activity android:name="TestingActivity" android:screenOrientation="portrait" android:configChanges="orientation" > </activity>
<activity android:name="Main">
<intent-filter>
<action android:name="android.intent.action.MAIN"></action>
<category android:name="android.intent.category.LAUNCHER"></category>
</intent-filter>
</activity>
<activity android:name=".TestingActivity2" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:screenOrientation="landscape" />
Your problem is in layout-portrait xml file. 您的问题出在layout-portrait xml文件中。 You can fix it by redesigning it.
您可以通过重新设计来修复它。 Please post your code.
请发布您的代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.