Loading...

Android 禁止螢幕旋轉

Temperature: 0 °C

Mark ChangMark Chang
author_tools

首先找到AndroidManifest.xml檔案
位置在app/manifests/路徑底下
在 <activity> </activity> 中,添加一條屬性資訊:

android:screenOrientation="portrait" (強制豎屏)
android:screenOrientation="landscape" (強制橫屏)


Android 禁止螢幕旋轉
上面展示使用了強制豎屏,這樣不管怎麼旋轉畫面都能夠保持~

這部份倒是比RWD網站好用多了。

以上紀錄~
 

https://innstory.com/story-Android_禁止螢幕旋轉-1863
Android

Prev
 Android_UI設計距離課題

Next
利用_htaccess_限制可瀏覽ip來源 

About the Author

Mark Chang

離不開電腦的宅男

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

PDO PHP - PDOException - Numeric value out of range: 1264 Out of range value for column user_ip at row 1

PDO PHP - PDOE...

最近遇到一個問題,一個Mysql的錯誤訊息。 我想要紀錄一個IP資訊,我會先用以下方式擷取用戶端使用...

在PHP強制顯示錯誤訊息的方法

在PHP強制顯示錯誤訊息的方...

若是單一檔案,只需要在每個PHP檔案裡添加下列行: iniset(&#;displayerrors&...

使用手機將網址分享到 Line時,如何強制使用預設(外部)瀏覽器開啟?

使用手機將網址分享到 Lin...

如標題,當厭惡了每次在line上面分享demo網址給客戶時點選網址就會使用line的瀏覽器開啟。 還...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format