android - How do I detect if a user has touched any part of the screen other than the inside of an EditText? -


i guessing means making whole screen touchable. how done?

and secondly calculating if x,y within edittext.

override ontouchevent in activity want implement this....and x, y co-ordinates using event.getx() , event.gety()

 @override public boolean ontouchevent(motionevent event) { int x = (int)event.getx(); int y = (int)event.gety(); switch (event.getaction()) { case motionevent.action_down: case motionevent.action_move: case motionevent.action_up: } return false; } 

but suggest must search thoroughly before posting question.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -