Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

2 dimensional scrolling chart for Epg or some schedule in android

I will share my diagram for the screen first.

Diagram of the screen

Each cell Pij represents a program scheduled for the channel Ci in the leftmost channel column which should scroll vertically with the grid. It also corresponds to timeline, horizontally scrolling list of timings (the topmost row). Cell width should be proportional to program's duration.

Ways i thought about

1) Trouble synchronizing scrolling in this way

There are some other variations I attempted, but nothing worked. There are similar question on stackoverflow but i have't found the solution. links of those question :

Scroll multiple recyclerviews on one recyclerview scroll

and

How to show EPG in Android?

I am not very confident about the method that I should develop for this problem.

I also thought about using webView and Html, looking into it.

So, please have a look and give me your important suggestion and guidance.

Thank you for your time.

like image 465
Vikas Pandey Avatar asked Nov 09 '22 03:11

Vikas Pandey


1 Answers

Basically, you need to add textviews in horizontal rows. The length of the textview depends on the duration of the program. I have hosted a sample project on Github. Feel free to clone. https://github.com/xardox69/android_EPG

like image 89
ozmank Avatar answered Nov 14 '22 22:11

ozmank