Android Touch Mode

1 - touch mode下没有focus。

概念:

手触屏后,系统进入touch mode。

使用键盘或者trackball后,系统退出touch mode。

原因:

可以考虑一个具体例子:

The user can freely navigate through the list using the trackball but also, alternatively, scroll and fling the list using the touch screen. The issue in this scenario is how to handle the selection properly when the user manipulates the list through the touch screen.

In this case, if the user selects an item at the top of the list and then flings the list towards the bottom, what should happen to the selection? Should it remain on the item and scroll off the screen? What should happen if the user then decided to move the selection with the trackball? Or worse, what should happen if the user presses the trackball to act upon the currently selected item, which is not shown on screen anymore?

2 - Focusable in Touch Mode

EditText是一个在touch mode下可以获得focus的一个组件。

原因:

The focusable mode is what lets the user enter text inside a text field on the screen, without first selecting it with the trackball or their finger.

 

Ref:https://docs.huihoo.com/android/3.0/resources/articles/touch-mode.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值