Android safe area making touch events off-target - how to fix

Hi Folks,

I’ve had a problem where on some Android devices, the screen didn’t response properly to touch events (they were “off target” vertically until the user had rotated the device e.g. left/right).

I have now found that the reason was that the “notch” on those devices wasn’t picked-up properly.

My solution was to do add the windowTranslucentStatus reference to my App’s AppTheme style.

  <style name="AppTheme" parent="android:Theme.NoTitleBar">
    <!-- following required for notch insets to work! -->
    <item name="android:windowTranslucentStatus">true</item>
  </style>

I found this solution here:

I hope this helps some of you out!

Best wishes, Pete

1 Like