Ejemplo n.º 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());
   }
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
 @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);
   }
 }