I would like to extend AndroidHarness to extend the display under the notch / display cutouts (see Support display cutouts | Android Developers).
The current fullscreen option is not sufficient for this, but I achieved the desired result by adding the flag WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
:
@Override
@SuppressWarnings("unchecked")
public void onCreate(Bundle savedInstanceState) {
initializeLogHandler();
logger.fine("onCreate");
super.onCreate(savedInstanceState);
if (screenFullScreen) {
requestWindowFeature(Window.FEATURE_NO_TITLE);
int flags = WindowManager.LayoutParams.FLAG_FULLSCREEN
| WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS;
getWindow().setFlags(flags, flags);
}
...
I guess an option would be interesting for this need, unless you have another solution ?