Unable to scroll down in TV(EPG-GUIDE)Using TV Remote Down Button

霸气de小男生 提交于 2020-01-07 05:01:07

问题


1.I am Developing an android application as Electronic Program Guide(EPG) for set-top-box followed by this project https://github.com/codessentials/android-tv-epg."

2.I can able to navigate left to right,rigtht to left(Horizontal scroll) & able to see the focus also(Left & right Remote key navigation),

3.I can't navigate Top to Bottom & Bottom to Top,unable to scroll it & can't see the focus,that view fully opened, so focus went to down but i can't see that.

4.How to scroll as Top to buttom(Up & Down Remote key navigation)


回答1:


You may check this documentation. The Android framework automatically applies a directional navigation scheme based on the relative position of focusable elements in your layouts. You should test the generated navigation scheme in your app using a D-pad controller. After testing, if you decide you want users to move through your layouts in a specific way, you can set up explicit directional navigation for your controls. Check the lists of all of the available navigation attributes for Android user interface widgets. To use one of these explicit navigation attributes, set the value to the ID (android:id value) of another widget in the layout. You should set up the navigation order as a loop, so that the last control directs focus back to the first one.



来源:https://stackoverflow.com/questions/45416404/unable-to-scroll-down-in-tvepg-guideusing-tv-remote-down-button

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!