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.
现在我使用 ShakeListener 关注这个站点。它有效,但更敏感一些。 有谁知道如何实现像shootme app 这样的抖动检测?
谢谢你。
如果我理解你的问题是正确的,你希望震动不那么敏感。使用您发布的代码只需将“摇动时间”更改为 250-300 毫秒。
private static final int TIME_THRESHOLD = 300;