在屏幕的Andr​​oid查找pressure [英] android find pressure on screen

查看:176
本文介绍了在屏幕的Andr​​oid查找pressure的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想大致了解了pressure量在Android电容屏上的手指presses。我的想法是让区域覆盖的手指,当它被触摸(也许一些额外的参数,以获得更准确,但多数民众赞成在主要的想法)。

I would like to roughly understand the amount of pressure the finger presses on the capacitive screen on android. My idea is to get the area covered by the finger when it is touched (maybe some extra parameters to get it more accurate, but thats the main idea).

那么,有没有什么办法可以找到被覆盖? (例如获得覆盖的像素的数量)。

So, is there any way to find the are covered? (for example get the number of pixels covered).

推荐答案

只有的 MotionEvent.get pressure()(您可能已经发现了)。我怀疑,有一些报道有多少像素涵盖了手指。

There is only MotionEvent.getPressure() (which you probably already found). I doubt that there is something that reports how many pixel are covered by the finger.

这篇关于在屏幕的Andr​​oid查找pressure的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆