[Android] Grid with custom MauiScrollview control and handler has wrong z index and changes when overscrolling #20689
Labels
area-controls-scrollview
ScrollView
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
I have a grid with the row definitions "Auto, *". In the first row, I have a simple HorizontalStacklayout with some text, sort of like a banner. Then in the second row, I have a custom MauiScrollView control which is populated by a handler in Android. When running in iOS I see the expected result of the scrollview rendering inside its allocated space and essentially "slides under" the banner. However, in Android, the Scrollview is rendered on top of the banner. Furthermore, when I overscroll at the bottom of the list, the ZIndex changes and renders it below as it should, resulting in a wierd UI bug.
scrcpy_V2Rpt8qdVX.mp4
Steps to Reproduce
Link to public reproduction project repository
https://github.com/jurganson/custom-android-in-grid-bad-zindex-repro
Version with bug
8.0.3 GA
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
Setting the ZIndex manually on the custom control and header layout solves the issue
Relevant log output
No response
The text was updated successfully, but these errors were encountered: