Bottom view cutout for rounded bottom screen corners [Display Cutout]

Viewed 589

When there is a full screen enabled from the device display setting and the phone has a rounded edge on the bottom then my buttons at the bottom cut out a little bit. I have found some reference for notch cutout but not able to find the bottom cutout.

Solution Assumption: Margin at bottom >> Not fulfill my XD requirement. My buttons should be at the bottom without margin.

Please refer below screenshot.

enter image description here

1 Answers

You can set the cutout mode either programmatically or by setting a style in your activity. The example below defines a style that you can use to apply the LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES attribute to the activity

<style name="ActivityTheme">
  <item name="android:windowLayoutInDisplayCutoutMode">
    shortEdges <!-- default, shortEdges, never -->
  </item>
</style>

For more detail Click Here

Related