Guest User

Untitled

a guest
Jul 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. public class A {
  2. private OnItemClickListener mListener;
  3.  
  4. public interface OnItemClickListener {
  5. void onDeleteClick(int position);
  6. }
  7.  
  8. ...
  9. @Override
  10. public void onDeleteClick(int position) {
  11. errase(position);
  12. }
  13. }
  14.  
  15. public interface OnItemClickListener {
  16. void onItemClick (int position);
  17. void onDeleteClick (int position);
  18. void onButtonClick (int position);
  19. }
  20.  
  21. public class A {
  22. private OnItemClickListener mListener;
  23.  
  24. ...
  25. @Override
  26. public void onItemClick(int position) {
  27. //empty because I dont need it here
  28. }
  29.  
  30. @Override
  31. public void onButtonClick(int position) {
  32. //empty because I dont need it here
  33. }
  34.  
  35. @Override
  36. public void onDeleteClick(int position) {
  37. errase(position);
  38. }
  39. }
Add Comment
Please, Sign In to add comment