title: Android: Registering ContextMenu for a Custom ListAdapter
body: <p>I made a custom list adapter extending the Base adapter. Each item in the list has an imagebutton, 2 textviews and a button. I tried to add the context menu to the list so as to display some options for an item in the list. </p>
  
  <pre><code>registerForContextMenu(getListView());
  </code></pre>
  
  <p>I used a MenuInflater object to inflate the context menu xml file. But on clicking the items in the list nothing shows up or the usual highlighting of the item of list on click isn't shown. Is it that the context menu doesn't work for custom list views? Any help would be much appreciated.</p>
  
  <p>Regards,
  Primal</p>