maui
                                
                                 maui copied to clipboard
                                
                                    maui copied to clipboard
                            
                            
                            
                        [Android] Performance issue with Horizontal ScrollView
Description
When using a horizontal ScrollView with a layout, we have an infinite Layout loop dramatically impacting performance.
This is the behavior on Xamarin.Forms:
And this is .NET MAUI:
Steps to Reproduce
- Sync or download https://github.com/jsuarezruiz/netmaui-chat-app-challenge
- Launch the App on Android.
- Try to scroll the top horizontal list (just 10 items in the sample code, 100 in the gif but can see the problem in any case).
Link to public reproduction project repository
https://github.com/jsuarezruiz/netmaui-chat-app-challenge
Version with bug
8.0.21 SR4.1
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 14
Did you find any workaround?
No response
Relevant log output
No response
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Open similar issues:
- Using HorizontalStackLayout within ScrollView on Android, fails to display any data from display center to the right (#10289), similarity score: 0.77
Closed similar issues:
- Regression Bug. Nested ScrollView does not work in Android. Works in iOS. (#20920), similarity score: 0.79
- ScrollView doesn't work properly on Android. (#7590), similarity score: 0.79
- Scrollview control not working properly in .Net MAUI (Android) (#8427), similarity score: 0.77
- ScrollView inside StackLayout is not scrolling (#10786), similarity score: 0.77
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Hey @jsuarezruiz, how do you get the performance indicators shown in your gif in the description?
Hey @jsuarezruiz, how do you get the performance indicators shown in your gif in the description?
From the Developer Settings, Profile HWUI rendering https://developer.android.com/topic/performance/rendering/inspect-gpu-rendering
similar to #20684 ? Although there are differences in the problem descriptions, I believe these two problems are similar. You can check the CPU differences through commands "adb shell top"