We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

If I use Frame element in SfListView.ItemTemplate, in Android not clickable

Hallo,

in Android, I can't use in the DataTemplate in SfListView.ItemTemplate the Frame Element. It is not selectable/clickable. IOS everything works fine.

I use .net 6 and the newest Version of the SfListView

Example:

 <Frame Margin="10">

        <Grid>

            <Grid.RowDefinitions>

                        <RowDefinition Height="auto" />

                        <RowDefinition Height="*"/>

                        <RowDefinition Height="auto"/>

                        <RowDefinition Height="auto"/>

            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>

                        <ColumnDefinition Width="10"/>

                        <ColumnDefinition/>

                        <ColumnDefinition/>

                        <ColumnDefinition Width="10"/>

            </Grid.ColumnDefinitions>

            <Label Grid.Column="1" Grid.ColumnSpan="2" Text="{Binding DriverName}" FontAttributes="Bold" TextColor="Black" FontSize="20" />

                         <BoxView

                            Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1"

                          BackgroundColor="Silver"

                          HeightRequest="1"

                          HorizontalOptions="FillAndExpand" />

            <StackLayout Spacing="5" Orientation="Horizontal" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="2">

                <Label Text="{Binding UserName}" TextColor="DarkGray" FontSize="15"/>

                <Label Text="{Binding SurName}" TextColor="DarkGrey" FontSize="15"/>

            </StackLayout>

            <Label Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="3" Text="{Binding UserDescription}" TextColor="Gray" FontSize="15"/>


        </Grid>

              </Frame>


Thanks,


Markus



1 Reply

SY Suthi Yuvaraj Syncfusion Team February 7, 2023 01:41 PM UTC

Hi Markus,

We have checked the reported query “If I use Frame element in SfListView.ItemTemplate, in Android ” from our side, Frame is used on the ItemTemplate which is the actual cause of the issue. It restricts the tap on the ItemTemplate. We have tested the same scenario in both SfListView and framework levels. We would like to inform you that we are facing an issue when using Frame inside any custom control, Here the Tap action is not passed. we have logged this issue is logged as a bug at the framework level.


Please refer to the framework issue report for more reference,

Bug report:https://github.com/dotnet/maui/issues/8330


We recommend you use the Grid Layout where you can customize it instead of a frame which will be a workaround in this case.


Loader.
Live Chat Icon For mobile
Up arrow icon