how to override onLongClickListener for action item?

625 views
Skip to first unread message

qualitative

unread,
Jun 11, 2012, 10:52:00 AM6/11/12
to actionba...@googlegroups.com
Hello all. Is it posible to override long click listener in Sherlock action bar? and how if it is?

Jake Wharton

unread,
Jun 11, 2012, 11:03:09 AM6/11/12
to actionba...@googlegroups.com

It is not possible. The long press is reserved for toasting an action item's title.

Макс Кукушкін

unread,
Jun 11, 2012, 11:24:50 AM6/11/12
to actionba...@googlegroups.com
Thanks, I thought so =(

2012/6/11 Jake Wharton <jakew...@gmail.com>

It is not possible. The long press is reserved for toasting an action item's title.

On Jun 11, 2012 7:52 AM, "qualitative" <maks.ku...@gmail.com> wrote:
Hello all. Is it posible to override long click listener in Sherlock action bar? and how if it is?



--
WBR,
 Maxim Kukushkin

mikhael turki

unread,
Jul 19, 2012, 8:54:01 AM7/19/12
to actionba...@googlegroups.com
Hello, this is probably not the best place to ask this question, but is it possible to prevent/remove/disable this toast?
Thanks

dongyuan zhang

unread,
Dec 26, 2012, 10:46:42 PM12/26/12
to actionba...@googlegroups.com
I want to kown how to disable/remove this toast.
If you kown ,please tell me:zhangd...@126.com
Thanks.

Kirubhakar T.T.

unread,
Dec 26, 2012, 10:48:31 PM12/26/12
to actionba...@googlegroups.com

If you are using Sherlock as a library project, then you can remove that in the Sherlock project directly.

Kirubhakar T.T.

unread,
Dec 26, 2012, 10:57:25 PM12/26/12
to actionba...@googlegroups.com

You can't do that in your project. But if you are using ABS as a library project you can go to ActionMenuItem.java and comment out the complete code under OnLongClick and just return true.

Reply all
Reply to author
Forward
0 new messages