标签:
可能的原因:
mListView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {@Overridepublic boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {mApSelect = position;Log.d(TAG, "onItemLongClick:" + mApSelect);return false;}});
/*** Callback method to be invoked when an item in this view has been* clicked and held.** Implementers can call getItemAtPosition(position) if they need to access* the data associated with the selected item.** @param parent The AbsListView where the click happened* @param view The view within the AbsListView that was clicked* @param position The position of the view in the list* @param id The row id of the item that was clicked** @return true if the callback consumed the long click, false otherwise*/
android 长按 ListView 无法弹出 ContextMeun
标签:
原文地址:http://www.cnblogs.com/JonnyLulu/p/4462642.html