3 ms·
Android does! The API is quite esoteric, but I've built a custom layout before for the Pixel C, way back when. You ship a special XML layout file in your APK th
by tadfisher 4y ago
Android does! The API is quite esoteric, but I've built a custom layout before for the Pixel C, way back when. You ship a special XML layout file in your APK that gets picked up by the input framework.
- ledauphin 4y agoit seems like this is a per-application setting rather than a per-user setting? which would almost entirely negate its usefulness in my opinion.
- tadfisher 4y agoNope, 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.