Android Long Press Spinner View
问题 I want to be able to long press items in the spinner view and have a contextMenu appear. I tried this code: spinner = (Spinner) findViewById(R.id.catagorySpinner); ArrayAdapter<String> adapter = new ArrayAdapter<String>(context,android.R.layout.simple_dropdown_item_1line, data); spinner.setAdapter(adapter); registerForContextMenu(spinner); but as you can guess this added a context menu to the actual Spinner and not to the contents inside. Does anyone know how i can do this? 回答1: Have you