Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
umakamat
Posts: 14
Registered: ‎01-21-2013
My Device: BB10 alpha device
My Carrier: NA

Can Context Menu be shown on single click on LitstItem?

Context Menu specified for a list is shown normally on LongTap Gesture on list item. Can I pragmatically show the context Menu on single click instead of LongTap?

 

Thanks,

Uma Kamat

Please use plain text.
Trusted Contributor
Brennan12325
Posts: 204
Registered: ‎05-15-2012
My Device: None
My Carrier: Telus

Re: Can Context Menu be shown on single click on LitstItem?

[ Edited ]

Hmm... If you were to handle the onTouch method of the ListItem container you could call the select method on that item, which I think displays the menu... I'm not positive that a ListItem being selected causes the menu to show. I do know that whenever the context menu shows the list items select method is called, though, and I doubt this is a coincidence.

----------------------
Check out my app, Alien Flow for reddit

And of course, like my post if you found it helpful or informative!
Please use plain text.