Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Android] IsClippedToBounds does not work correctly on API < 18 #3704

@PureWeen

Description

@PureWeen

Description

setClipBounds is currently only supported on API >= 18

In order to make it work on API < 18 in the same way that it works for >= 18 we would need to modify the ViewGroup and implement our own custom override to setClipBounds

For example
https://stackoverflow.com/questions/18724976/can-setclipbounds-be-called-on-a-view-before-it-has-been-drawn

Steps to Reproduce

  1. Run MultipleClipToBounds in Control Gallery on a device with API < 18
  2. Notice how the described tests fail

Expected Behavior

Tests shouldn't fail

Actual Behavior

Tests do fail

Basic Information

  • Version with issue: 3.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions