You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
Having the button and another view in front of the button on a layout (AbsoluteLayout, Grid,.. "kind of layout that allows overlap") and all of that into a ScrollView and into a NavigationPage the button will always be on top
There is also a related issue with this, having the button on a layout (AbsoluteLayout, Grid,.. "kind of layout that allows overlap") with something in front of it without the navigation page and the scrollview it will look ok but when I click the button multiple times it will come in front of the other visual elements but even if it looks like it came in front visually, the zone where the element was overlapping is not clickable on the button
If the button is disabled the visual overlap is not happening
@WarBorg this one is a bit tricky and we still don't have the best solution for it.. #7300
The problem here is that button has an elevation on it. When button was using a legacy renderer it was wrapped in a viewgroup with an elevation that just stayed zero so it was always at the same relative elevation as everything else.
A few ways you can fix this without revertting
set the layouts to CompressedLayout.IsHeadless="True" which will allow some work around code we have on android to fix what elevations it can
wrap the button in a stacklayout or a grid so that it basically simulates having a viewgroup
since we cant use the CompressedLayout.IsHeadless="True" because we are changing visibility and backgroundcolor on the elements inside the layouts I choose to use the second method and wrapped the button in a stacklayout and seems that did the trick :D
Description
Having the button and another view in front of the button on a layout (AbsoluteLayout, Grid,.. "kind of layout that allows overlap") and all of that into a ScrollView and into a NavigationPage the button will always be on top
There is also a related issue with this, having the button on a layout (AbsoluteLayout, Grid,.. "kind of layout that allows overlap") with something in front of it without the navigation page and the scrollview it will look ok but when I click the button multiple times it will come in front of the other visual elements but even if it looks like it came in front visually, the zone where the element was overlapping is not clickable on the button
If the button is disabled the visual overlap is not happening
related to #3543
Steps to Reproduce
Expected Behavior
The expected hierarchy of the visual stack would be:
Actual Behavior
The button is stuck on the front of the visual stack.
Basic Information
Screenshots
Reproduction Link
https://github.com/WarBorg/TestActivityButtonXamForms
Workaround
switch to UseLegacyRenderers
The text was updated successfully, but these errors were encountered: