How to handle Safe Area in Android phones with API < 28

According to the safe area API, it only works (in android) for Android phones with API 28+. How to get this area for android devices with API below 28?

Devices having cutout area come with API 28+. So for devices having no cutout area, just return 0 for that value.

3 Likes

I see… Thank you @Chung_Xa