3
我可能失去了一些東西,但是這個代碼:如何使用MonoTouch.Dialog的ActivityElement?
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
};
不顯示任何動畫啄。它只顯示標籤。我怎樣才能獲得動畫明星?
問題是,ActivityElement從未被調整過與彈出工作。它使用UIScreen.MainScreen.Bounds來計算它的位置。這就是爲什麼它是爲你工作,如果它是根控制器。我有一個解決這個問題的固定版本的例子:https://github.com/Krumelur/ReviewSelection/blob/master/ReviewSelection/UI/Elements/FixedActivityElement.cs – Krumelur 2013-03-24 17:01:44
啊是的。您需要將其更改爲現在使用邊界 - MT.D中有幾個位置假定爲全屏,並在iPad上失敗。 – 2013-04-26 10:15:55