我有一个ScrollView结束AbsoluteLayout..我需要在屏幕中心修复ActivityIndicator的位置。我尝试了以下代码。
<ScrollView>
<AbsoluteLayout VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand">
<StackLayout BackgroundColor="White"
Padding="50,20,50,20"
Spacing="5"
AbsoluteLayout.LayoutBounds="0,0,1,1"
AbsoluteLayout.LayoutFlags="All">
// have set of elements..
</StackLayout>
<ActivityIndicator IsVisible="{Binding IsBusy}"
IsRunning="{Binding IsBusy}"
Color="Black"
AbsoluteLayout.LayoutBounds="0.5,0.5,0.1,0.1"
AbsoluteLayout.LayoutFlags="All"/>
</AbsoluteLayout>
</ScrollView>
Run Code Online (Sandbox Code Playgroud)
我发现结果位于的中心ScrollView。
我尝试将其放置在ActivityIndicator外面,ScrollView它仅给出白色屏幕作为输出。
如何确定ActivityIndicator屏幕中央的位置?