Git Product home page Git Product logo

Comments (18)

dzolnai avatar dzolnai commented on June 28, 2024

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.

Durgesh-1992 avatar Durgesh-1992 commented on June 28, 2024

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.

dzolnai avatar dzolnai commented on June 28, 2024

Can you make a video of the issue? It's hard to understand without seeing it

from android-tv-program-guide.

Durgesh-1992 avatar Durgesh-1992 commented on June 28, 2024

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.

Durgesh-1992 avatar Durgesh-1992 commented on June 28, 2024

hi, it would be beneficial if you could add the code for pagination for past or future timeline date.

from android-tv-program-guide.

Durgesh-1992 avatar Durgesh-1992 commented on June 28, 2024

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.

RalucaMariaT avatar RalucaMariaT commented on June 28, 2024

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.

Durgesh-1992 avatar Durgesh-1992 commented on June 28, 2024

@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.

image

from android-tv-program-guide.

Durgesh-1992 avatar Durgesh-1992 commented on June 28, 2024

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.

Durgesh-1992 avatar Durgesh-1992 commented on June 28, 2024

@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.

image

hi @dzolnai , can you please respond on this. I am really stuck on this.

from android-tv-program-guide.

dzolnai avatar dzolnai commented on June 28, 2024

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.

dzolnai avatar dzolnai commented on June 28, 2024

@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.

Durgesh-1992 avatar Durgesh-1992 commented on June 28, 2024

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.

dzolnai avatar dzolnai commented on June 28, 2024

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.

Durgesh-1992 avatar Durgesh-1992 commented on June 28, 2024

@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.

Durgesh-1992 avatar Durgesh-1992 commented on June 28, 2024

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.

dzolnai avatar dzolnai commented on June 28, 2024

@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.

dzolnai avatar dzolnai commented on June 28, 2024

Closing because of inactivity. If still occurring, please add the required details in a new issue.

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.