ListView的长按事件和item点击时间冲突

把return false修改为true就可以了
private ListView.OnItemLongClickListener listItemLongLis=new ListView.OnItemLongClickListener(){

    @Override
    public boolean onItemLongClick(AdapterView parent, View view, int position, long id) {
        Log.d(TAG,"MainActivity:ListView调用长按事件");
        longClickAlertDialog(position);
        return true;
    }
};

你可能感兴趣的:(Andriod,Studio遇到的问题/解答)