RadSlideView Panning Issue in Android with Frames

1 Answer 11 Views
SlideView
Calin
Top achievements
Rank 1
Calin asked on 27 Mar 2024, 12:01 AM
I noticed that if I use the RadSlideView in a Maui project running on Android the panning gestures do not work when in a frame control. It works fine on a windows machine but does nothing in Android.

Here's  the view that i'm using which i modified from the SDKBrowserMaui:


<?xml version="1.0" encoding="utf-8" ?>
<telerik:RadContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
                        xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                        xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
                        x:Class="SDKBrowserMaui.Examples.SlideViewControl.FeaturesCategory.InteractionModeExample.InteractionMode"
                        Margin="5">
    <Grid>
        <!-- >> slideview-interaction-xaml -->
        <telerik:RadSlideView x:Name="slideView"
                              ItemsSource="{Binding Views}"
                              InteractionMode="Pan">
            <telerik:RadSlideView.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                        </Grid.RowDefinitions>

                        <Label Grid.Row="0" Text="{Binding Content}" HorizontalTextAlignment="Center" Margin="20"></Label>
                        <Frame Grid.Row="1" Background="LightGray" CornerRadius="15" Margin="15">
                            <!--<Frame.GestureRecognizers>
                                <SwipeGestureRecognizer Direction="Left,Right" Swiped="SwipeGestureRecognizer_OnSwiped"></SwipeGestureRecognizer>
                            </Frame.GestureRecognizers>-->
                            <telerik:RadButton Text="Button in Frame"
                                               TextColor="#007ACC"
                                               VerticalOptions="Center"/>
                        </Frame>
                        <telerik:RadButton Grid.Row="2" Text="Button in Grid"
                                       TextColor="#007ACC"
                                       VerticalOptions="Center"/>
                    </Grid>
                </DataTemplate>
            </telerik:RadSlideView.ItemTemplate>
        </telerik:RadSlideView>
        <!-- << slideview-interaction-xaml -->
    </Grid>
</telerik:RadContentView>

I realize I can get it to work by adding a GestureRecognizer in the frame but it took a while to figure out what was going wrong.

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 29 Mar 2024, 09:14 AM

Hello Calin,

It seems you stumbled upon the following issue with SlideView on Android: 

SlideView: [Android] Cannot swipe along with the content when navigating to another item

The content handles the pan gesture and SlideView cannot initiate its navigation - this happens with different content, not only with frames and as you noticed it's specific Android issue.

I've raised the priority of the issue per your report, and hopefully we'll manage to look into it soon. Please follow the feedback item to get notified on status changed.

For now, indeed, the workaround is to manually handle the Frame swipe gesture. 

I am sorry for any inconvenience caused.

Regards,
Yana
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
SlideView
Asked by
Calin
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or