如何很好的支持横跨Android设备pressure灵敏度? [英] How well supported is pressure sensitivity across Android devices?
问题描述
欲写一个应用程序,反应以多少pressure从用户的手指被施加。具体来说,我想用这个来改变所画的线的厚度。我很高兴与刚刚反应应用到屏幕上的手指的表面面积。
I want to write an app that reacts to how much pressure is applied from the user's finger. Specifically, I want to use this to vary the thickness of a line being drawn. I'm happy with just reacting to the surface area of the finger applied to the screen.
在MotionEvent.getSize()和MotionEvent.get pressure()函数似乎正是我想要的,但提及任何关于其准确性或他们的返回值的意思。从这些方法的返回值对我的需求大多数Android设备不够准确?
The MotionEvent.getSize() and MotionEvent.getPressure() functions seem exactly what I want but mention nothing about their accuracy or what their return values mean. Are the return values from these method accurate enough on most Android devices for my needs?
我很好奇,为什么没有时下流行的Android应用程序,使用pressure敏感性。我发现,提到这些方法和只遇到了讨论设备的具体错误的帖子很少的文章: <一href="http://groups.google.com/group/android-porting/browse_thread/thread/7e8b1bb77dc7d82d">http://groups.google.com/group/android-porting/browse_thread/thread/7e8b1bb77dc7d82d
I'm curious why there are no popular Android apps that make use of pressure sensitivity. I've found very few articles that mention these methods and have only come across posts that discuss device specific bugs: http://groups.google.com/group/android-porting/browse_thread/thread/7e8b1bb77dc7d82d
推荐答案
您将在这里找到一个名为标记的。巧克力慕斯蛋糕后,pressure检测已经可以在某种程度上电容屏。
You will find useful information here in a project named Markers. Pressure detection has been available somehow in capacitive screens after Eclair.
这篇关于如何很好的支持横跨Android设备pressure灵敏度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!