Xamarin.Forms - How to overlay an ActivityIndicator in the middle of a StackLayout programmatically

前端 未结 7 1771
谎友^
谎友^ 2020-12-13 06:59

I want to overlay my ActivityIndicator in the middle of my form but I\'m not entirely sure how I can go about this, I assume I need to wrap my stack layout in a relative lay

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 07:40

    You need to use absolute layout. Follow the following hierarchy of the layout:

    
        
    
            
    
        
    
        
    
            
    
            
    
    
    

    With this the activity indicator will be overlaid in the middle of a stack layout.

提交回复
热议问题