曼波鱼Sunfish 2014-07-10 03:28
浏览 5259

Android 传感器中,压力传感器(感应手指的触摸压力,非气压传感器)的实现问题

关于Android是否可以获取触摸压力,SDK中有这样一段话支持这个观点:
“For example, when the user first touches the screen, the system delivers a touch event to the appropriate View with the action code ACTION_DOWN and a set of axis values that include the X and Y coordinates of the touch and information about the pressure, size and orientation of the contact area.”
其中
1、MotionEvent.getPressure():“Returns the current pressure of this event for the given pointer index”
2、MotionEvent.getSize():“Returns a scaled value of the approximate size for the given pointer index”
受有道云笔记手写功能启发,请问有压力传感器开发经验的同行具体实现中主要用哪个函数?该怎么用?精确率如何?
参考:http://docs.huihoo.com/android/4.2/reference/android/view/MotionEvent.html#AXIS_PRESSURE

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥50 树莓派安卓APK系统签名
    • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
    • ¥65 汇编语言除法溢出问题
    • ¥15 Visual Studio问题
    • ¥15 state显示变量是字符串形式,但是仍然红色,无法引用,并显示类型不匹配
    • ¥20 求一个html代码,有偿
    • ¥100 关于使用MATLAB中copularnd函数的问题
    • ¥20 在虚拟机的pycharm上
    • ¥15 jupyterthemes 设置完毕后没有效果
    • ¥15 matlab图像高斯低通滤波