On Sun, Apr 24, 2011 at 6:36 PM, Keith Wiley <kbwi...@gmail.com> wrote:
> I understand your point, but you aren't being completely fair.  My
> Edit text can detect not only single also double and triple taps (I
> had to hack triple tap detection from scratch of course).  I want to
> provide additional functionality on double or triple tap long presses,
> but it won't work if the contextual menu is forced upon all long
> presses.  Furthermore my app offers a fully configurable UI where
> single/double/triple taps/long-presses/drags can be assigned to
> numerous complex functions in a way that greatly empowers the user.

So?

You have all this stuff for every other touch operation known to
humanity, apparently, yet you can't just leave the long-press alone to
do what an EditText is supposed to do on a long-press? Why not move
your long-press functions to a quadruple tap or something? What is
sooooooooooooo magical about you hacking a long-press that is worth
breaking the existing expectations of the users?

> So, with all due respect, we can debate the philosophy how to present
> such UIs in a parallel or separate discussion

You assume that I am here exclusively to help you. I am also here to
put opinions in the record for those who read this thread in the
future (e.g., via a search). I don't want developers thinking that
messing with system menus is a good idea.

> Do you know how to do what I'm trying to do?

The only thing I can think of -- and it's a long shot -- is to call
unregisterForContextMenu() sometime relatively late in the process.
This can also be achieved by calling
setOnCreateContextMenuListener(null) on the EditText itself. I can't
quite see where an EditText/TextView actually declares that it *has* a
context menu. I get the distinct impression from the code I'm reading
that it's somewhat bypassing the normal context menu system. But, in
the off chance you get lucky, if you unregister it sometime after it
has been registered, that might suppress the built-in context menu.

But I really wish you wouldn't.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 3.0 Programming Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to