Ameausoone / demo-github-action

12 stars 1 forks source link

How do I appear on the presentation screen #53

Open valentinpx opened 2 years ago

valentinpx commented 2 years ago

La télé la télé

github-actions[bot] commented 2 years ago

rickroll

github-actions[bot] commented 2 years ago

If you were using Android 10:

From: https://developer.android.com/guide/topics/ui/foldables#software_keyboard

Software keyboard

A keyboard can be shown on a secondary screen if the display is configured to support system decorations. The input method editor will automatically show up if a text field requests input on that display.

While leads to:

Android Open Source Project - Input Method Editor Support

https://source.android.com/devices/tech/display/multi_display/ime-support

and that page has a lot of detail on the various implementation & security issues on having a multiple display IME.

As you mentioned a custom device running Android 7.1 unless the manufacturer has modified for system decorations:

From that AOSP page on IME support:

In Android 9 (and lower), the IME was only available on the default screen...

So from stock AOSP you can't have the native IME appear outside of the default display.

I can only suggest reaching out to the manufacturer to see if they have a custom SDK for that feature, else you will have to create your own IME-like view, assuming you can get touch events from the secondary display.