Closed duongtainhan closed 3 years ago
Hi!
I'm looking for a way to scroll the center Program Guide Grid when move from right to left
Can you be a bit more specific with what you want? You can move the entire grid using ProgramGuideManager.jumpTo()
or ProgramGuideManager.shiftTime()
I don't understand yet is
overlapStart
overlapStart
is required for the focus finder. In the programs row, the programs can be behind the left channel column. When you want to focus the row, you don't want to put focus on the program behind that column, because the user won't see the higlight and will be lost. This overlapstart makes sure that on first focus, no program behind the column will be selected.
overlapStart
is required for the focus finder. In the programs row, the programs can be behind the left channel column. When you want to focus the row, you don't want to put focus on the program behind that column, because the user won't see the higlight and will be lost. This overlapstart makes sure that on first focus, no program behind the column will be selected.
Thanks for the explanation for me to understand. It helps a lot.
Can you be a bit more specific with what you want? You can move the entire grid using
ProgramGuideManager.jumpTo()
orProgramGuideManager.shiftTime()
I want when scrolling, the focus item will be in the center of recycler view. Like this:
I see, that is quite difficult to change, I do not have the time to do that.
You can try yourself, basically you need to change the focusSearch(...)
method of ProgramGuideRowGridView
, by calling scrollByTime at the correct time with the correct amount.
I see, that is quite difficult to change, I do not have the time to do that. You can try yourself, basically you need to change the
focusSearch(...)
method ofProgramGuideRowGridView
, by calling scrollByTime at the correct time with the correct amount.
Thanks for the suggestion to me. I will try handling focusSearch.
Hi,
I'm looking for a way to scroll the center Program Guide Grid when move from right to left. Can you guys tell me how to do it? Also there is a variable in
ProgramGuideGridView
I don't understand yet isoverlapStart
in lineit.overlapStart = it.resources.getDimensionPixelOffset(R.dimen.programguide_channel_column_width)
. Can you explain to me what it is, please?Thanks & Regards.