3 ms·
Nope, the input framework picks up the layout XML from all packages that export a BroadcastReceiver with an Intent filter for the android.hardware.input.action.
by tadfisher 4y ago
Nope, the input framework picks up the layout XML from all packages that export a BroadcastReceiver with an Intent filter for the android.hardware.input.action.QUERY_KEYBOARD_LAYOUTS action.
However, it looks like I am wrong, and this is only for hardware keyboards, not software IMEs. It looks like there is an API to pass extra data about layout via InputMethodSubtype, but it's basically a key-value map and thus is completely not standardized across IMEs, if any IME even supports redefining the layout through this API.