Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
382 views
in Technique[技术] by (71.8m points)

Is it possible to emulate the notch from the Huawei P20 with Android Studio

Huawei's P20 has an iPhone X like notch on the top of the screen. Can this "notch" be emulated in Android Studio so it is possible to test how an app is rendered on it without owning a P20? I looked in the settings and it is possible to select a "skin" in the Hardware profile but Huawei's P20 is not part of it.

question from:https://stackoverflow.com/questions/49652453/is-it-possible-to-emulate-the-notch-from-the-huawei-p20-with-android-studio

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Follow the screen shots.

first make sure 9.0 (api 28) run in your Emulater or testing device.

  1. Open System settings.

enter image description here

  1. Open Developer option (*if u not found developer option please tap 7 times on build number. after that you get developer option.)

enter image description here

  1. Scroll Down Until You Found -> Simulate a Display With a Cutout(click on it)

enter image description here

  1. there is a multiple option to select screen Cutout style.

enter image description here

  1. if you select Tall Display Cutout , your display is like that.

enter image description here

or if you select Double Display Cutout your display like.

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...