touch mode

When a user is navigating a user interface with directional keys or a trackball, it isnecessary to give focus to actionable items (like buttons) so the user can seewhat will accept input. If the device has touch capabilities, however, and the userbegins interacting with the interface by touching it, then it is no longer necessary tohighlight items, or give focus to a particular View. Thus, there is a modefor interaction named "touch mode."

For a touch-capable device, once the user touches the screen, the devicewill enter touch mode. From this point onward, only Views for whichisFocusableInTouchMode() is true will be focusable, such as text editing widgets.Other Views that are touchable, like buttons, will not take focus when touched; they willsimply fire their on-click listeners when pressed.

Any time a user hits a directional key or scrolls with a trackball, the device willexit touch mode, and find a view to take focus. Now, the user may resume interactingwith the user interface without touching the screen.

The touch mode state is maintained throughout the entire system (all windows and activities). To query the current state, you can callisInTouchMode() to see whether the device is currently in touch mode.


你可能感兴趣的:(windows,user,System,query,interface)