Input for all screens

preview_player
Показать описание
As more large screen form factors become available, apps need to support input peripherals more than ever. Learn about some straight-forward best practices to support input methods like keyboard, mouse, and stylus. These simple changes can elevate your app experience and grow user engagement.

Resources:

Speaker: Patrick Fuentes

Watch more:

#GoogleIO #Featured #AndroidDevelopers
Рекомендации по теме
Комментарии
Автор

I can't see this working using compose 1.2.0-beta01. I am testing on the emulator, I have a simple UI with a text field followed by a button. I expect that when I press tab or enter while focused on the text field, the focus will shift to the button and the keyboard will collapse. Instead the text field processes the input and adds spacing and new lines, even if the text field is set to singleLine and/or the maxLines are set to 1. Where can I find information on how to solve this?

leandroperalta
Автор

If I have a custom button or text field, wrapped in my own composable function, do I need to do extra work to get focus to behave as expected?

leandroperalta