teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

試したことの詳細を追記

2020/04/01 05:53

投稿

kobayashi5884
kobayashi5884

スコア55

title CHANGED
File without changes
body CHANGED
@@ -22,10 +22,33 @@
22
22
  android:screenOrientation="portrait"
23
23
  >
24
24
  ```
25
+ > 引用テキスト
25
26
 
27
+
26
28
  ### 試したこと
27
29
  activity節に記載しても、縦方向への固定はできません。
28
30
 
31
+ むしろ、エラーとなります。下記がactivity節です。
32
+
33
+ ```xml
34
+
35
+ <activity android:name=".MainActivity"
36
+ android:screenOrientation="portrait"
37
+
38
+ >
39
+ <intent-filter>
40
+ <action android:name="android.intent.action.MAIN"
41
+
42
+ />
43
+
44
+ <category android:name="android.intent.category.LAUNCHER" />
45
+ </intent-filter>
46
+ </activity>
47
+
48
+ ```
49
+ 下記メッセージが、activity節に追記した箇所へ出ました。
50
+ > Expecting android:screenOrientation="Unspecified" or "fullsensor" for this activity so the user can use the application in any orientation and provide a greate experience on Chrome OS devices.
51
+
29
52
  ### 補足情報(FW/ツールのバージョンなど)
30
53
 
31
54
  android studio3.6.1使用