RxBinding icon indicating copy to clipboard operation
RxBinding copied to clipboard

Why RxRecyclerView hasn't addOnItemTouchListener?

Open Kolyall opened this issue 7 years ago • 1 comments

I need to observe on click of items in recycler view. By pattern somebody use the code:

mRecyclerView.addOnItemTouchListener(new RecyclerItemClickListener(getActivity(), new RecyclerItemClickListener.OnItemClickListener() {
            @Override
            public void onItemClick(View view, int position) {
              Log.d("tag","Click on position = " + position);
            }
        }));

Why RxBinding hasn't the method in RxRecyclerView?

Kolyall avatar Jul 27 '18 14:07 Kolyall

RxRecyclerView is missing the wrapper for addOnItemTouchListener that would become itemTouches() (maybe?). But the RecyclerItemClickListener is not part of the framework or the support libraries so I think it would't be right to include that behavior into this library.

GSala avatar Aug 04 '18 19:08 GSala