Example usage for android.widget ListView showContextMenuForChild

List of usage examples for android.widget ListView showContextMenuForChild

Introduction

In this page you can find the example usage for android.widget ListView showContextMenuForChild.

Prototype

@Override
    public boolean showContextMenuForChild(View originalView) 

Source Link

Usage

From source file:org.klnusbaum.udj.PlaylistFragment.java

public void onListItemClick(ListView l, View v, int position, long id) {
    l.showContextMenuForChild(v);
}

From source file:at.ac.uniklu.mobile.sportal.CourseListFragment.java

@Override
public void onListItemClick(ListView l, View v, int position, long id) {
    l.showContextMenuForChild(v);
}

From source file:org.geometerplus.android.fbreader.network.NetworkLibraryActivity.java

@Override
public void onListItemClick(ListView listView, View view, int position, long rowId) {
    if (myListClickActions.isEmpty()) {
        fillListClickList();//w  ww.  j a v a 2  s.  c o  m
    }

    final NetworkTree tree = (NetworkTree) getListAdapter().getItem(position);
    for (Action a : myListClickActions) {
        if (a.isVisible(tree) && a.isEnabled(tree)) {
            checkAndRun(a, tree);
            return;
        }
    }

    listView.showContextMenuForChild(view);
}