I have a ListFragment Activity.
I want to create a method for onItemClickedLongPress, so that when the user does this. a menu pops up. I am familiar with creating the menu.
So if some one would please, give me further instructions on how to set Override the longpress in a ListFragment activity?
edit: this sample shows how to show something other then system menu fx. QuickAction from https://github.com/lorensiuswlt/NewQuickAction
EDIT:
This ansewer is not good … why i did this such strange method? because eclipse intellisense did not propmt "good"
setOnLongClickListenerforListView(sinceListViewhas at least 2setOnLongClickListenermethods … one fromViewand second fromAdapterViewclass) … the easiest way is let yourListFragmentimplementAdapterView.OnItemLongClickListenerand then inonViewCreatedadd codegetListView().setOnLongClickListener(this);