开发者

The orientation of this specific activity is set to be landscape but not the other

开发者 https://www.devze.com 2023-02-21 02:34 出处:网络
I use in the AndroidManifest: <activity android:name=\"Zoom\" android:text=\"@string/Name\" android:screenOrientation=\"landscape\"></activity>

I use in the AndroidManifest:

<activity android:name="Zoom" android:text="@string/Name" android:screenOrientation="landscape"></activity>

to force this specific Activity(B) to be been see as landscape, my problem is when i am moving开发者_JAVA技巧 to the next Activity(c) or back to the Activity(A) its still show as landscape what i should do different??

thanks for helping!!


If your device is in landscape orientation, and you're not specifically setting orientation for the other activities, then they will show in landscape orientation.

Force the other activities to portrait with android:screenOrientation="portrait".

This will mean if your device is in landscape and you switch activity, the new activity will display in portrait (on its side) and the user will then have to rotate the phone into portrait mode to view it correctly

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号