Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why RxRecyclerView hasn't addOnItemTouchListener? #451

Open
Kolyall opened this issue Jul 27, 2018 · 1 comment
Open

Why RxRecyclerView hasn't addOnItemTouchListener? #451

Kolyall opened this issue Jul 27, 2018 · 1 comment

Comments

@Kolyall
Copy link

Kolyall commented Jul 27, 2018

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?

@GSala
Copy link

GSala commented Aug 4, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants