Absolute Layout Inhibiting Selection in ListView

NPCNPC USMember ✭✭

I'd like to overlay an ActivityIndicator over my screen as some of my buttons need some time to respond and I need to show the user that the app is not frozen. Because of this I need to overlay it over a ListView. While I've got the overlay part in top shape, I can no longer select items from the ListView. What property(s) are stopping the touch from being registered?

Example of Implementation:

<ContentPage.Content>
    <AbsoluteLayout VerticalOptions="FillAndExpand">

                <StackLayout>
                AbsoluteLayout.LayoutBounds="0, 0, 1, 1" 
                AbsoluteLayout.LayoutFlags="All">
                    <ListView 
                    RowHeight="70" 
                    x:Name="MainContainer"/>
                </StackLayout>

                <ActivityIndicator 
                AbsoluteLayout.LayoutBounds="0, 0, 1, 1" 
                AbsoluteLayout.LayoutFlags="All" 
                IsVisible="true"
                IsRunning="true"
                IsEnabled="true"
                x:Name="Loader"
                Color="Black"
                Scale="2"/>

    </AbsoluteLayout>
<ContentPage.Content>

Best Answer

  • NPCNPC US ✭✭
    Accepted Answer

    Solved, this can be fixed by setting the "InputTransparent" property of ActivityIndicator to "true"

Answers

  • NPCNPC USMember ✭✭
    Accepted Answer

    Solved, this can be fixed by setting the "InputTransparent" property of ActivityIndicator to "true"

Sign In or Register to comment.