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
Post a Comment