Friday, March 15, 2013

[android-developers] Context sub-menu opened-closed-reopened by itself!?

Reproduced on Android 4.2.2, however this behavior I've seen this behavior since 2.2 or 2.3.

I have a context menu which include a sub-menu, when-ever I tap on the item to open the sub-menu, the sub-menu opens/closes and reopens quickly. That's very annoying but more problematic some of my users don't see the sub-menu at all, it opens/closes and that's it!

Now after experimenting I figured out that long-pressing the item actually works as soon as I release the item: the sub-menu opens properly and stays open!

So I decided to build a very basic project believing I had a bug in my app, so created a new app with the wizard, a single activity, a single text on which I registerForContextMenu and a context menu with a simple sub-menu.

The issue reproduced itself immediately!!! Does anyone experience the same and what am I doing wrong? I believe I followed documentation and samples, but I can't find any information on this problem anywhere!!!

Please help, this is driving me crazy. Hopefully someone will get me out of my misery while I continue to try to figure this out ;)

Thanks.

--
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment