How do I get,
for android phones that has rounded corners on the bottom,
Samsung Galaxy S10, for example,
the bottom margin size that I should exclude from my display ?
There is a Java method of the class DisplayCutout (api level 28),
named getSafeInsetBottom() that should return this.