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

RecyclerView keyevent move fast on TV #535

Open
VeiZhang opened this issue Nov 22, 2019 · 3 comments
Open

RecyclerView keyevent move fast on TV #535

VeiZhang opened this issue Nov 22, 2019 · 3 comments

Comments

@VeiZhang
Copy link

Other view, I can use RxView.keys to control.
But for recycler view item, because of long press keyevent, recycler view move fast, how to use rxbinding to control it?

@JakeWharton
Copy link
Owner

I'm not really sure what you're asking. RxBinding just adapts listener-based callbacks to RxJava-based ones. Can you model what you want with the listener? If so, it should be easy for us to translate it to the RxJava equivalent.

@VeiZhang
Copy link
Author

VeiZhang commented Dec 10, 2019

@JakeWharton Hello, I will try to display.

I test the situation in TV with RCU.

Normal view keyevent like this, when I use long press keyevent, the keyevent send intermal with about 50ms, that's what I want:

RxView.keys(mProgressBar, keyEvent -> progressKeyProcessor(mProgressBar, keyEvent.getKeyCode(), keyEvent))
                .subscribe();

But for recyclerview, I try to translate for each view in adapter, I also try to translate recyclerview keyevent, but it not work.
Normally using long press keyevent in recyclerview, it scroll fastly, because the keyevent send fast. I want to slow it down like normal view.

Can u understand? How to do it, thanks a lot.

@36289108
Copy link

- [ ] - **hola@ **`bjjggkih```

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

No branches or pull requests

3 participants