Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个使用 w 软键盘的 android 应用程序
我想要做的是以编程方式按下键盘上的一个键
如何实施?
Activity.dispatchKeyEvent(KeyEvent)在这种情况下是你的朋友。:)
Activity.dispatchKeyEvent(KeyEvent)