开发者

How to deactivate the touchscreen of android device?

开发者 https://www.devze.com 2023-01-11 12:31 出处:网络
i want to deactivate the touch screen of my android device for some application. Anyone plz help me开发者_JAVA百科.......

i want to deactivate the touch screen of my android device for some application. Anyone plz help me开发者_JAVA百科.......

Thanx in adv


You cannot "deactivate the touch screen". You are welcome to design your own UI that does not respond to touch input.


put a transparent Layout and override the OnTouch Events!

@Override
OnTouch():
 OnTouch(){
   return false;
} 

Update:: How to avoid Touch Event

0

精彩评论

暂无评论...
验证码 换一张
取 消