差分

ナビゲーションに移動 検索に移動

Xamarin.Androidで画面遷移する

415 バイト追加, 2020年4月3日 (金) 06:51
ページの作成:「 JavaだとIntent引数にclassを使う。 <source lang="java"> Intent intent = new Intent(this, AboutActivity.class); startActivity(intent); </source>…」


[[Java]]だと[[Intent]]の[[引数]]にclassを使う。
<source lang="java">
Intent intent = new Intent(this, AboutActivity.class);
startActivity(intent);
</source>


[[Xamarin.Android]]では[[Intent]]の[[引数]]にtypeofを使う。
<source lang="csharp">
var intent = new Intent(this, typeof(AbouActivity));
this.StartActivity(intent);
</source>


ほとんど同じだな。

[[category: Xamarin.Android]]

案内メニュー