简体   繁体   English

如何允许遥控器将焦点从键盘移动到屏幕上的按钮?

[英]How can I allow a remote to move focus from keyboard to button on the screen?

I have an android TV app that is accepting a password and outside of the keyboard I have a button that will show the password. 我有一个接受密码的android TV应用程序,在键盘之外,我有一个显示密码的按钮。 I can't move from the keyboard to the show password button without physically backing out of the editText, is it possible to make it so the keyboard can always be shown and I can move directly from keyboard to the button for focus? 如果不从物理上退出editText,就无法从键盘移至显示密码按钮,是否可以使其始终显示键盘,并且我可以直接从键盘移至按钮以进行聚焦?

What you needed is to create TV navigation it will help you understand the minimum requirements for creating effective TV app navigation scheme and how to apply those requirements to your app, see also Provide clear focus and selection . 您需要创建电视导航,这将帮助您了解创建有效的电视应用程序导航方案的最低要求以及如何将这些要求应用于您的应用程序,另请参阅提供明确的焦点和选择

Additional reference: Android User Interface Design: The Basics of Control Focus Order and this SO post 其他参考: Android用户界面设计:控制焦点顺序的基础知识本SO帖子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM