The following problem seems unique to 2.1, occurs both on the emulator and on the bundle. The same example works fine on other platforms that I tested ( 1.5, 1.6 and 2.0 emulators).
I added the created gestureListener as described in this post . The difference is that I added a listener to the TextView, which also has a registered contextMenu, i.e. Sth as below:
onCreate(...) {
...
tv = findViewById(R.id.text_view);
tv.registerForContextMenu(this);
gestureListener = ...
tv.setOnTouchListener(gestureListener);
...
}
During testing, the correct gesture is well recognized, but each time it also causes the context menu to open. Since the same example works on platforms without 2.1, I have a feeling that this is not my code, this is the problem ...
Thanks for any suggestions.
:
, -. onFling() "" , .. True, false, , 2.1. , , . ...