Manage focus on Program view
shailesh2208 opened this issue · 6 comments
Hi, I am facing problem with manage focus in program view. When our program guide screen is going to start, I want default focus on current time program. When user scroll up and down, focus will move only current time program. This time when I launch the app the default program is selected either 1 or 2 hours later or earlier.
Hello @shailesh2208 is this reproducible in the demo project? Maybe you could try delaying the focus call until the data has loaded?
Hi, @dzolnai I can not see it in your demo project with demo data, but when I changed it with my custom large amount of data, it is happening. I did not made any changes in your demo code except using my own data. Can you guide me on which file we have to work to manage focus during first load and during down and up navigation??
Focus during first load: ProgramGuideFragment.autoScrollToBestProgramme()
Focus during up and down navigation: ProgramGuideRowGridView.onRequestFocusInDescendants()
Hi, @dzolnai I am still facing problem on focus. I can observe that default focus of first channel is changing time to time at certain time of period. By default is selecting 2 hours later program after some time when I am opening the app, it is default selected 1.5 hours later program and its continues decrease to current till prev program like halfour prev, one hour prev etc.
How can we fixed that when we load the program first time the default selection will be current program of first channel.
Hi @shailesh2208! Is this still an issue? If yes, please send me a diff / compressed project where I can reproduce it, so I can properly look into it.
Closing because of inactivity. If still occurring, please add the required details in a new issue.