方法一:(此方法在Android8.0 codebase已不可用) frameworks/base/services/core/java/com/android/server/wm/WindowManagerService.java中,如果把updateShowImeWithHardKeyboard()方法中的showImeWithHardKeyboard变量直接置为true,则可以实现软键盘与物理键盘的同时使用。(原本为读取Setting数据库字段来判断,所以也可以直接...
publicstaticintgetHidClassDrawable(BluetoothClass btClass) {switch(btClass.getDeviceClass()) {caseBluetoothClass.Device.PERIPHERAL_KEYBOARD:caseBluetoothClass.Device.PERIPHERAL_KEYBOARD_POINTING:returnR.drawable.ic_lockscreen_ime;caseBluetoothClass.Device.PERIPHERAL_POINTING:returnR.drawable.ic_bt_pointing_hid...
// for show IME with HardKeyboard if (device.getName().equals("XXX-vinput-keypad")) { Slog.w("SLCODE", "the hard device name is: " + device.getName()); config.keyboard = Configuration.KEYBOARD_NOKEYS; } // Add by Janning end } } if (config.navigation == Configuration.NAVIGATION...
如果把updateShowImeWithHardKeyboard方法中的showImeWithHardKeyboard变量直接置为true,则可以实现软键盘与物理键盘的同时使用, 但此举修改影响范围很大,不推荐。 publicvoidupdateShowImeWithHardKeyboard() {//modified by Janning for enble the HardKeyboard startfinalbooleanshowImeWithHardKeyboard = Settings.Secure....
将mHardKeyboardEnabled直接改成false 这样改软键盘是能用但是物理键盘是用不了的 最后研究代码frameworks\base\services\core\java\com\android\server\wm\WindowManagerService.java 如果把updateShowImeWithHardKeyboard方法中的showImeWithHardKeyboard变量直接置为true,则可以实现软键盘与物理键盘的同时使用, ...
// 如果输入设备的键盘类型为KEYBOARD_TYPE_ALPHABETIC,则将keyboard设置为KEYBOARD_QWERTY if (device.getKeyboardType() == InputDevice.KEYBOARD_TYPE_ALPHABETIC) config.keyboard = Configuration.KEYBOARD_QWERTY; keyboardPresence |= presenceFlag; ... // ...
if (classes & INPUT_DEVICE_CLASS_ALPHAKEY) { keyboardType = AINPUT_KEYBOARD_TYPE_ALPHABETIC; } ... return device; }InputReader在增加设备时,根据classes的flag来设置键盘类型。这个flag又是在EventHub.cpp中设置的。status_t EventHub::openDeviceLocked(const char *devicePath) { ... // Configure...
mBuiltInKeyboardId(NO_BUILT_IN_KEYBOARD), mNextDeviceId(1), mControllerNumbers(), mOpeningDevices(0), mClosingDevices(0), mNeedToSendFinishedDeviceScan(false), mNeedToReopenDevices(false), mNeedToScanDevices(true), mPendingEventCount(0), mPendingEventIndex(0), mPendingINotify(false) { ...
To see it in action, including switching between device platforms, check out the brief video below. [View:https://www.youtube.com/watch?v=sdPT-TzgU84:0:0] The Universal Mobile Keyboard will be generally available in October 2014 for the estimated retail price ...
Cite this paper Klima, M., Slavik, P. (2011). Vector Keyboard for Android Platform-Based Devices. In: Smith, M.J., Salvendy, G. (eds) Human Interface and the Management of Information. Interacting with Information. Human Interface 2011. Lecture Notes in Computer Science, vol 6771. Springe...