简体   繁体   English

触摸屏幕时无法使用电容式按钮

[英]Cant use capacitive buttons while touching the screen

I'm having issues while coding for my Evo. 在为我的Evo编码时遇到问题。 While touching the screen, the Evo interprets me touching the buttons as another press on the screen instead of a onKeyDown, onBackPressed, etc. (It actually sets the MotionEvent pointer count to 2, and I can get the co-ords that I'm touching that are off the main screen, for example, 830*190 when touching the back button.) 在触摸屏幕时,Evo解释我触摸屏幕上的另一个按键而不是onKeyDown,onBackPressed等。(它实际上将MotionEvent指针计数设置为2,我可以获得我的合作伙伴触摸它不在主屏幕上,例如,触摸后退按钮时为830 * 190.)

Short of coding in the locations of the buttons (which would be different for every phone with capacitive buttons, if they all have the same issue), is there any way to get around this? 在按钮的位置没有编码(对于每个带有电容式按钮的手机都不同,如果它们都有相同的问题),有什么方法可以解决这个问题吗? Does anyone else have this issue with a different capacitive buttoned device? 是否有其他人使用不同的电容式按钮设备有此问题?

On the Evo, the area where the buttons are uses the same capacitive touch sensor as the screen. 在Evo上,按钮所在的区域使用与屏幕相同的电容式触摸传感器。 You can test this by loading up a webpage and scrolling until your finger is in the buttons region. 您可以通过加载网页并滚动直到手指位于按钮区域来测试。 Instead of pressing those buttons, you just continue to scroll around on the webpage, because as far as the phone is concerned you're still touching the "screen". 您只需继续在网页上滚动,而不是按下这些按钮,因为就手机而言,您仍然在触摸“屏幕”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM