Forum Cross Platform with Xamarin

Change background color of the selected list item?

I have a ListView that displays nicely except that when I tap an item the background color turns orange:

<ContentPage.Content>
        <ListView x:Name="groupListView" ItemSelected="Handle_GroupSelected">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <TextCell Text="{Binding GroupName}"  TextColor="Black" />
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
</ContentPage.Content>

Does anyone know how to set the background color of the selected item? (I need it to work in Android as well as iOS.)

Answers

Sign In or Register to comment.