Пример #1
0
 @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());
   }
 }
Пример #2
0
 @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;
 }