korre / android-tv-epg

Classic TV electronic program guide (EPG) with multidirectional scroll
MIT License
160 stars 75 forks source link

library export #6

Closed lazarvgd closed 7 years ago

lazarvgd commented 7 years ago

Hi I have question about this project. I am new with android and really don't know how to add this solution to my project, is it possible to import it as gradle dependency or as library to existing project?

thanks

korre commented 7 years ago

Hi,

It's unfortunately not available as a gradle dependency but it's easy to add to your project still.

You just need the epg package from: java/se/kmdev/tvepg

Then you need a couple of resources from the res package but you'll be aware of that when adding the epg package. Good luck!

lazarvgd commented 7 years ago

One more question it is not related to adding the project, but to navigation.

I am trying to enable navigation through the epg content with remote and I need indicator of current marked item. Is that possible to achieve with canvas?

thanks and sorry for inconvenience

korre commented 7 years ago

@lazarvgd. Yes it is. In the touch listener you might save the current pressed item. Then in onDraw you just check if this variable is set and change the background properly when drawing that particular item.