
Historically, when you turn your phone on its side, the screen rotates. To keep this from happening, you can lock the orientation. But with Android P, Google included a way to have to the best of both worlds.
從歷史上看,當您將手機側放時,屏幕會旋轉。 為了防止這種情況發生,您可以鎖定方向。 但是,借助Android P,Google提供了一種兼具兩全其美的方式。
This new feature, which doesn’t seem to have an exact name, allows the display to be rotated on a per-app bases. But here’s the catch: it only works when rotation lock is enabled. But that’s what makes it so simply brilliant.
這項似乎沒有確切名稱的新功能使顯示可以基于每個應用程序旋轉。 但是這里有個問題:僅在啟用旋轉鎖定時它才有效。 但這就是它如此出色的原因。
Here’s how it works. Lock the screen rotation by pulling down the notification shade and tapping the Auto-rotate button (black is off). Now, fire up an app that you’re sure will rotate and turn the screen.
運作方式如下。 下拉通知欄并點擊“自動旋轉”按鈕(黑色關閉),以鎖定屏幕旋轉。 現在,啟動一個您確定會旋轉并旋轉屏幕的應用程序。


A little rotate button should show up in the corner of the navigation bar—tap it to rotate the screen. To go back to the “regular” orientation, turn the phone again. The button will appear again and you can flip it back.
導航欄的角落應該會出現一個小小的旋轉按鈕,點擊以旋轉屏幕。 要返回“常規”方向,請再次轉動手機。 該按鈕將再次出現,您可以將其向后翻轉。

With this feature, you can make sure the screen doesn’t rotate when you don’t want it to, but still flip specific apps into the alternation orientation when you need to. Since it works on a per-app basis, you’ll have control over display orientation like never before.
借助此功能,您可以確保在不需要時屏幕不會旋轉,但在需要時仍可將特定應用翻轉為交替顯示方向。 由于它是基于每個應用程序的,因此您可以前所未有地控制顯示方向。
翻譯自: https://www.howtogeek.com/fyi/google-hid-an-awesome-per-app-auto-rotate-feature-in-android-p/