Hello SaiGanesh and thank you for the quick response,
I have checked your sample and it works as expected. After updating the nuget packages to match the same packages in my project, the problem occured in your sample too.
I have modified the sample and attached a screenshot video that illustrates the issue.
Technical Info:
Target framework for the shared project :
.Net standard 2.1
Android target framework:
10.0 (Q) I have tested on the visual studio android emulator with (Android: 10.0, API level: 29).
IDE:
Microsoft Visual Studio Community 2019, Version 16.9.2
Installed nuget packages :
Xamarin.Forms v5.0.0.2012, Xamarin.Essentials v1.6.1, Syncfusion.Xamarin.Cards v18.4.0.48, Syncfusion.Xamarin.SfListViewv18.4.0.48
|
public interface IDependencyServiceListView
{
void SetNestedScrollingEnabled(SfListView ListView);
} |
|
[assembly: Dependency(typeof(ListViewDependencyService))]
namespace ListViewXamarin.Droid
{
public class ListViewDependencyService : IDependencyServiceListView
{
ExtendedScrollView ExtendedScrollView;
public void SetNestedScrollingEnabled(SfListView ListView)
{
#if __ANDROID_29__
ExtendedScrollView = ListView.GetScrollView();
var extendedScrollViewRenderer = Platform.GetRenderer(ExtendedScrollView);
extendedScrollViewRenderer.View.NestedScrollingEnabled = false;
#endif
}
}
} |
|
protected override void OnAppearing()
{
base.OnAppearing();
if (Device.RuntimePlatform == Device.Android)
{
DependencyService.Get<IDependencyServiceListView>().SetNestedScrollingEnabled(listView);
}
} |
|
<syncfusion:SfListView Grid.Row="1"
x:Name="listView"
ItemSize="150"
IsScrollingEnabled="False"
Orientation="Horizontal"
ItemsSource="{Binding contactsinfo}">
<syncfusion:SfListView.ItemTemplate>
|
|
private void listView_Loaded(object sender, Syncfusion.ListView.XForms.ListViewLoadedEventArgs e)
{
if (Device.RuntimePlatform == Device.Android)
{
DependencyService.Get<IDependencyServiceListView>().SetNestedScrollingEnabled(listView);
}
} |