Giter Site home page Giter Site logo

Comments (3)

dzolnai avatar dzolnai commented on July 30, 2024

I'm sorry, lazy loading is not a supported feature.
I assume, that when you load the new items, it will recreate the recyclerviews, or fill them with new items, so the focus will be lost and regained, jumping to the beginning.

from android-tv-program-guide.

ngan9elova avatar ngan9elova commented on July 30, 2024

I see, thank you, I made some changes which kind of give me this behaviour, but I have some focus issues. Do you possibly have any ideas in which area should I concentrate, regarding the mentioned issues such as: focus sometimes skipping element in the row, or sometimes not being able to move the focus downwards unless I move it a couple of times in random direction (I think perhaps the focusSearch or findNextFocusedProgram might be responsible). Can you tell me a bit more why those methods were needed or what use case required them to be added?

from android-tv-program-guide.

dzolnai avatar dzolnai commented on July 30, 2024

If you enable view layout debugging in the developer options, you can see the current focus with a big X on it, that can help, maybe some other component catches the focus when the items are removed.
But that means that the current items are removed, so maybe you should look at some different behavior, like implementing DiffUtil on the RecyclerViews and ensuring that existing items are kept.

from android-tv-program-guide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.