0
私はコードだけでUI要素を作成する方法を見てきましたUI要素をアンドロイドで動的に追加する方法
どうすればいいですか?
RelativeLayout mainLayout = FindViewById<RelativeLayout>(Resource.Id.MainRelativeLayout);
TextView newText = new TextView(this);
newText.Text = "HEY THERE NEW TEXT MADE VIA CODE";
mainLayout.AddView(newText);
// Set our view from the "main" layout resource
SetContentView(Resource.Layout.Main);
下のタイプを指定する必要がないことが判明します。アンドロイド – mrOak