我可能在这里遗漏了一些东西,但这段代码:
this.oSectionDRs = new Section()
{
new ActivityElement()
{
Caption = Locale.GetLocale("Settings_Loading"),
Animating = true
}
};
// To begin with just show a loading indicator.
this.Root = new RootElement (Locale.GetLocale("Settings_Select"))
{
this.oSectionDRs
};
不显示任何动画内容。它只显示标签。我怎样才能获得动画明星?
答案 0 :(得分:0)
使用此代码:
var root = new RootElement("foo");
root.Add (new Section("foo", "bar") {
new ActivityElement()
{
Caption = "foo",
Animating = true
}
});
var dvc = new DialogViewController(root, false);
window.RootViewController = dvc;
我同时获得标题和活动滚动条。不确定它会帮助你!我刚刚使用内置的MT.D。