コード例 #1
0
 @OnClick(R.id.item_comic_parent)
 void onClick() {
   if (selector.tapSelection(this)) {
     clickListener.onItemSelected(getAdapterPosition());
   } else {
     clickListener.onItemClick(getAdapterPosition());
   }
 }
コード例 #2
0
 @OnLongClick(R.id.item_comic_parent)
 boolean onLongClick() {
   if (selector.tapSelection(this)) {
     clickListener.onItemSelected(getAdapterPosition());
   } else {
     clickListener.onItemLongClick(getAdapterPosition());
   }
   return true;
 }