Android library to display EPG view
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
implementation 'com.github.diareuse:Android-EPGView:x.y.z'
Pretty much the same as regular old ListView
- Extend adapter EPGAdapter<Channel, Program>
- Provide views for Channel, Program, Time cell (up top ^^) and header that moves with time
- Then fetch program starts and ends via
getProgramAt(section, position)
- Then fetch start and end time of your epg from virtually anywhere you want
-
OnCreate set that adapter to your view that you obviously implemented before
-
Fetch your data and set it to your adapter
- Friendly reminder, don't forget to call
view.notifyDataSetChanged()
on your view :)
- That's it x)
Yes, interoperable, but misses nullability annotations so don't expect anything fancy. Most crashes have been cleared from original version. If you were to find any, create a pull request, I will build a new version for you from jitpack right away ;)