「MonoGame (Xamarin.Android)で画面の向きを指定する」の版間の差分
Administrator (トーク | 投稿記録) 編集の要約なし |
Administrator (トーク | 投稿記録) 編集の要約なし |
||
| 9行目: | 9行目: | ||
* 縦画面に固定したい場合は「ScreenOrientation.Portrait」を指定する。 | * 縦画面に固定したい場合は「ScreenOrientation.Portrait」を指定する。 | ||
<source> | <source lang="csharp"> | ||
[Activity(Label = "Game1", | |||
MainLauncher = true, | |||
Icon = "@drawable/icon", | |||
Theme = "@style/Theme.Splash", | |||
AlwaysRetainTaskState = true, | |||
LaunchMode = LaunchMode.SingleInstance, | |||
ScreenOrientation = ScreenOrientation.Portrait, | |||
ConfigurationChanges = ConfigChanges.Orientation | | |||
ConfigChanges.KeyboardHidden | | |||
ConfigChanges.Keyboard | | |||
ConfigChanges.ScreenSize)] | |||
public class GameActivity : AndroidGameActivity | |||
{ | |||
} | |||
</source> | </source> | ||