@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { if (null != mListener) { Debtor debtor = (Debtor) mAdapter.getItem(position); mListener.onFragmentInteractionNewTransaction( null, null, debtor.getIdAsString(), debtor.getName()); } }
@Override public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) { if (null != mListener) { Debtor debtor = (Debtor) mAdapter.getItem(position); mListener.onFragmentInteractionEdit( debtor.getIdAsString(), MyOnFragmentInteractionListener.ACTION_EDIT_DEBTOR); } return false; }
@Override public void onItemClick(AdapterView adapterView, View view, int position, long id) { Log.d(TAG, "onItemClick: position: " + position + ", id: " + id); String item = listAdapter.getItem(position).trim(); if (item.endsWith(" =")) { item = item.substring(0, item.length() - 2); } if (!item.startsWith("no result")) { inputView.append(item); } }