1
我瞭解基本AXML用法如:Android/MonoDroid:我可以將一個AXML文件加載到視圖中嗎?
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
SetContentView(Resource.Layout.Home);
}
有沒有辦法來AXML的片段,如結合:
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
var layout = new LinearLayout(this);
layout.AddView(Resource.Layout.HomePart1);
layout.AddView(Resource.Layout.HomePart2);
SetContentView(layout);
}