内容へ移動
猫型iPS細胞研究所
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
INDEX
»
android
»
回転固定
トレース:
android:回転固定
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== 回転固定 ====== androidManifest.xml内の対象となるactivityタグの中に<html>screenOrientation</html>を設定する。 ===== 縦固定 ===== <code xml AndroidManifest.xml> <activity android:name=".MainActivity" android:screenOrientation="portrait" > </activity> </code> ===== 横固定 ===== <code xml AndroidManifest.xml> <activity android:name=".MainActivity" android:screenOrientation="landscape" > </activity> </code> ===== サンプル ===== <code xml AndroidManifest.xml> <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.nekotype.ips.thechoice"> <uses-permission android:name="android.permission.INTERNET" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MenuActivity" android:screenOrientation="portrait"> // ←ここ <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> ・・・ </code>
android/回転固定.txt
· 最終更新: 2019/12/09 23:55 by
ips
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ