android p 模拟器开启刘海模式

2,974 阅读1分钟

1.开启开发者选项

再settings中搜索About ,选第一个 About emulated device


点击About emulated device,拉到底部点击7下build number开启开发者模式



2.在 Developer options 屏幕中,向下滚动至 Drawing 部分并选择 Simulate a display with a cutout

再settings中搜索developer options


向下滚动至 Drawing 部分并选择 Simulate a display with a cutout,在弹出框中

随便选一个,不要选none就可以




参考:https://developer.android.com/preview/setup-sdk.html