RxBinding
RxBinding copied to clipboard
Why RxRecyclerView hasn't addOnItemTouchListener?
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?
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.