korre / android-tv-epg

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

How do we enable Keyboard controls (Left/Right/Up/Down) in EPG #9

Closed Raghuram143403 closed 6 years ago

Raghuram143403 commented 7 years ago

Hi Kristoffer Matsson,

Since am developing an application on android TV so we need to control from Keyboard as well as remote.

Can you please help me here .

Thanks in Advance.

acavazos1982 commented 6 years ago

I would also like to do this, right now it only works with touchscreen. @Raghuram143403 did you ever patch the current code to get it to work? Did you find another solution or did you build your own? Thanks.

korre commented 6 years ago

Hi,

I think thats possible by adding a focusable state to the program items in the EPG and then setting nextFocus properties if necessary.

See: https://developer.android.com/training/keyboard-input/navigation.html