我希望能够修改该代码,使其成为双击而不是单击。原因是手机屏幕上的空格键距离太近。当我按空格键或使用应用程序时,我总是会不小心点击它。
最佳答案
位于 PhoneWindowManager 。这些行可能就是您正在寻找的内容:
1821 // First we always handle the home key here, so applications
1822 // can never break it, although if keyguard is on, we do let
1823 // it handle it, because that gives us the correct 5 second
1824 // timeout.
1825 if (keyCode == KeyEvent.KEYCODE_HOME) {
1826
1827 // If we have released the home key, and didn't do anything else
1828 // while it was pressed, then it is time to go home!
1829 if (!down) {
1830 final boolean homeWasLongPressed = mHomeLongPressed;
1831 mHomePressed = false;
1832 mHomeLongPressed = false;
1833 if (!homeWasLongPressed) {
1834 if (mLongPressOnHomeBehavior == LONG_PRESS_HOME_RECENT_SYSTEM_UI) {
1835 try {
关于java - 有谁知道我在哪里可以找到 android 的 ICS home 按钮的代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15961604/