Comments (18)
Hello, can you make a reproduction sample for me?
I think you might have to need to request the focus on the grid.
from android-tv-program-guide.
Hi, in current viewport, focus is there but when we reached to end program then it doesn't scrolls from either end. I checked the log when we reach the end we supply the scroll offset to shift the time in program manager which in turn calculate the difference from startUtcmili and fromUtcMili to get the difference offset. But the issue here is that when shifttime is called previousFromUtcmili and updateded fromutcmilis remain same so it doesnt call the notify method.
from android-tv-program-guide.
Can you make a video of the issue? It's hard to understand without seeing it
from android-tv-program-guide.
Could you please tell me what should be the values for these variable.
val timelineStartsAt =
selectedDate.atStartOfDay(timeZone)/.minusDays(1)/.withHour(DAY_STARTS_AT_HOUR)
val timelineEndsAt =
timelineStartsAt.plusDays(1).withHour(DAY_ENDS_NEXT_DAY_AT_HOUR).
Does these variable value need to constant or it should change when we do backward/forward paging to add data for past or future time.
from android-tv-program-guide.
hi, it would be beneficial if you could add the code for pagination for past or future timeline date.
from android-tv-program-guide.
Please find the video captured for same issue. First time when data is loaded it scroll between the current visible viewport/screen. But when paging call is made for past/future program data then after updating the gridview with data as well as timeline it doesn't scroll to either end.
epg_grid_not_scrolling_from.either_end_after_updating_the_dataset_paging.mp4
Please look into it and let me know.
from android-tv-program-guide.
Hello, I want to add the same behavior, to load data in past and in future. @Durgesh-1992 can you please share your code changes for paging?
from android-tv-program-guide.
@dzolnai I have resolved the previous scroll issue. But I met another issue, that the item width(program span)/time is crossing the timeline slot, let say we have a program that have time slot or duration between 6:00 - 6:30, so it should the program in this slot of time line but it exceed the end time by some minute so it ends at 6:45 - 7:00. Could you please explain me how the program item are getting aligned with timeline recyclerview. Please check the screenshot for reference for issue mentioned.
from android-tv-program-guide.
Hello, I want to add the same behaviour, to load data in past and in future. @Durgesh-1992 can you please share your code changes for paging?
@RalucaMariaT Thanks for reaching out. I am currently occupied with emergent stuff that need to taken care on priority. Will share the sample that I did in the sample provided by the @dzolnai once I have time.
from android-tv-program-guide.
@dzolnai I have resolved the previous scroll issue. But I met another issue, that the item width(program span)/time is crossing the timeline slot, let say we have a program that have time slot or duration between 6:00 - 6:30, so it should the program in this slot of time line but it exceed the end time by some minute so it ends at 6:45 - 7:00. Could you please explain me how the program item are getting aligned with timeline recyclerview. Please check the screenshot for reference for issue mentioned.
![]()
hi @dzolnai , can you please respond on this. I am really stuck on this.
from android-tv-program-guide.
Hello @Durgesh-1992 , I was on my vacation last week, I'll try to arrange some time for this in the coming days. I'll get back to you with a more detailed reply then.
from android-tv-program-guide.
@Durgesh-1992 to me it seems that this is an issue with your views or alignment, because this does not seem to be an issue in the demo project.
from android-tv-program-guide.
Thanks @dzolnai for the reply. I have applied the logic that is there in demo app but result seems different. Could you please eleborate this condition " lp.marginStart = rowHeaderOverlapping - lp.width / 2 - timelineAdjustmentPixels" for position 0 in timeline adapter. When I comment "lp.width / 2" in above statement program item starts to get align with the timeline. Is there any specific reason to include width/2 as it add 15 min width to each program item in each program grid view.
from android-tv-program-guide.
The lp.width / 2
Makes sure that it centre-aligned instead of left aligned. So that the center of the text is aligned exactly above where the hour starts.
from android-tv-program-guide.
@dzolnai Thanks for reply. Currently the start time slot is getting somewhat hidden due to fade edge , that doesn't looks good , how can we align the starttime along the left edge. Could you please guide me on this.
from android-tv-program-guide.
Hi @dzolnai Hope you are doing fine. There is one issue that I am facing , when we scroll channel up or channel down or scroll forward, back ward we get issue "Reason: Input dispatching timed out (Waiting to send key event because the focused window has not finished processing all of the input events that were previously delivered to it. Outbound queue length: 0. Wait queue length: 1.)". Heads Up my channel list is of size 150 or more at a time and forward or backward paging triggers this issue when paging call is made and we are scrolling in opposite direction then also we get this issue. Could you please check and guide me where I need to make changes.
from android-tv-program-guide.
@Durgesh-1992 sorry for the late reply. Is this still an issue? If yes, please send a diff or compressed project, where it can be reproduced, so I can properly look into it.
from android-tv-program-guide.
Closing because of inactivity. If still occurring, please add the required details in a new issue.
from android-tv-program-guide.
Related Issues (20)
- Timeline doesn't match schedule start time HOT 8
- I want to use your skills in my java project HOT 2
- Time line not sync with current time HOT 6
- how can i use this project in Android Studio
- Unable to parse DateTime HOT 7
- not able to refresh data with new schedule list HOT 2
- current program view not updating currectly HOT 2
- How to Set time to 12 hour Format HOT 1
- Channel Image Focusable HOT 1
- Program cell behind the channel bar is getting focused. HOT 6
- Date field is not updating immediately on scroll of programs HOT 2
- How to use an XMLTV url with the code HOT 1
- Java implementation needed HOT 3
- Api to have 24-hour rolling window in grid view starting from previous half hour HOT 11
- Left Most Focus Issue HOT 4
- Help On Updating Large Amount Of Epg Data HOT 1
- autoScrollToBestProgramme/focusCurrentProgram don't always focus correctly on the corrent program
- Android TV Program Guide HOT 4
- Jetpack compose HOT 2
- Need help with timeline and line LIVE HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-tv-program-guide.