android系统长按的定义

frameworks/base/
diff –git a/core/java/android/view/ViewConfiguration.java b/core/java/android/view/ViewConfiguration.java
index c3f064f..11cf4f3 100644
— a/core/java/android/view/ViewConfiguration.java
+++ b/core/java/android/view/ViewConfiguration.java
@@ -66,7 +66,7 @@ public class ViewConfiguration {
/**
* Defines the time between successive key repeats in milliseconds.
*/
- private static final int KEY_REPEAT_DELAY = 50;
+ private static final int KEY_REPEAT_DELAY = 500;

 /**
  * Defines the duration in milliseconds a user needs to hold down the

frameworks/base/
diff –git a/services/input/InputDispatcher.h b/services/input/InputDispatcher.h
index 190e7b2..a6ef22e 100644
— a/services/input/InputDispatcher.h
+++ b/services/input/InputDispatcher.h
@@ -177,7 +177,7 @@ struct InputDispatcherConfiguration {

 InputDispatcherConfiguration() :
         keyRepeatTimeout(500 * 1000000LL),

- keyRepeatDelay(50 * 1000000LL) { }
+ keyRepeatDelay(500 * 1000000LL) { }
};

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值