Skip to content

Inconsistent focus positioning between Android 14 and Android 15 (Edge-to-Edge coordinate mismatch) #253

@Marvin-DHC

Description

@Marvin-DHC

After attempting to fix a vertical offset issue on Android 15
(targetSdk 35, Edge-to-Edge enforced),
the same fix causes incorrect positioning on Android 14 and below.

This appears to be caused by a coordinate system mismatch:

  • FancyShowCaseView overlay uses window (DecorView) coordinates.
  • View position APIs such as getGlobalVisibleRect() / getLocationOnScreen()
    return:
    • window-aligned coordinates on Android 14 and below
    • screen coordinates on Android 15 when Edge-to-Edge is enforced

There is currently no way to support both Android 14 and Android 15 correctly
without conditional, app-level workarounds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions