I have an EditText field and I want to pop up a new window/activity
whenever a user touches/clicks the field. The new window has some
widgets and of course Apply and Cancel buttons.
Here is the code how I intercept the onTouch event.
EditText ctlMaskEt = (EditText)findViewById(R.id.mask_field);
ctlMaskEt.setOnTouchListener(new OnTouchListener() {
public boolean onTouch (View v, MotionEvent event) {
popMaskEditor();
return true;
}
});
Everythings work fine until I click the Apply and Cancel buttons. The
API finish() won't close the new window unless I click the same button
one more time. Calling popMaskEditor() from a button's OnClick event
handler doesn't have this problem.
Can someone please tell me why? How to fix this problem? Thanks a lot.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---