xamarin/Xamarin.Forms

[Bug] [Android] Content rendered above a Material button is not visible when button is pressed

Open

#7,300 opened on Aug 28, 2019

 (4 comments) (0 reactions) (0 assignees)C# (1,926 forks)batch import
a/fastrendererse/4 :clock4:help wantedin-progressinactivep/Androidt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

When you render some content above a Material button, pressing the button on Android will give the button a higher elevation than the other content, hiding said content. We've had a few issues around this area and they've all been closed even though the fixes didn't fix this particular scenario.

related information PR #6271, ISSUE #6262, ISSUE #5642

@pureween commented on 5642

this one is partially fixed by this PR #6271 the main side effect that exists is once you click on the button then the labels disappear under the button. The material renderer has a dynamic elevation so the elevation increases when it's clicked

Steps to Reproduce

  1. Create a Layout with some input transparent content overlaying a material button.
  2. Tap the button.

Expected Behavior

The content above the button is still visible when pressing the button.

Actual Behavior

The button is rendered above the content.

Basic Information

  • Version with issue: 3.6.0.264807 all the way to 4.2.0
  • Last known good version: n/a
  • Platform Target Frameworks:
    • Android:

Screenshots

Reproduction Link

I'm linking the repro project from issue 5642 as the issue is still there. https://github.com/xamarin/Xamarin.Forms/files/2990085/ButtonOverlayIssue.zip

Contributor guide