androidandroid-webviewgoogle-tv

WebView focus on Google TV


I'm trying to use a Webview for a Google TV app. The problem I have is that I can't get the focus to move around in the view.

Obviously with a TV app I don't have a touch screen so I'm trying to use the D-Pad on the controller to shift the focus to the different HTML elements in the webview. However, all the D-pad buttons do is pan the view around the screen, which is also another problem I have where the view is much larger than the screen.

Any ideas?

Thanks


Solution

  • Have you looked at the Google TV JQuery / Closure UI Lib Extensions? https://developers.google.com/tv/web/docs/tools_libraries These work. There are issues if you hit the back button, but on the whole you can do what you want as long as your not mixing WebView controls w/ Android controls. Then it's a bit more work.

    For more info you can also look at https://developers.google.com/tv/android/articles/moving_web_content_to_android