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.
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:
return:
There is currently no way to support both Android 14 and Android 15 correctly
without conditional, app-level workarounds.