'ListView inside Scrollview is not working properly in Xamarin.Forms

We have one Page in which we are showing long news content with comments. We are showing it into the ScrollView. To the comments, we are using BindableLayout with StackLayout in Xamarin.Forms. Here in case of more comments, we are getting the Android app not responding pop up the issue in Android.

To fix the above issue we have tried to use Xamarin.Forms ListView. With ListView we have added our long news content into the ListView header and comment we are showing by ListView ItemTemplate and ItemsSource. In this case, we are facing another that is is not showing news content image and label text sometimes randomly in iOS. It is working fine on Android.

We have also tried ListView inside Scrollview. Here we have two issues one is it will conflict scrolling between ScrollView and ListView and the second at the bottom list item is not showing properly.

The same thing we have tried using CollectionView in this case also we are facing the same issue sometimes it is not showing news post images.

The thing is we want to show our long news post with more comments on the same page.

Can anyone please suggest any idea to achieve the same?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source