setFocusable和setFocusableInTouchMode之间的区别是什么? [英] What is the difference between setFocusable and setFocusableInTouchMode?

查看:2446
本文介绍了setFocusable和setFocusableInTouchMode之间的区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

之间的区别是什么 setFocusable setFocusableInTouchMode 为Android的看法?

What is the difference between setFocusable and setFocusableInTouchMode for an Android view?

其他问题试图读取后,<一个href="http://developer.android.com/reference/android/view/View.html#setFocusable%28boolean%29">documentation:

和如何从这些不同的 isFocusable isFocusableInTouchMode

And how are these different from isFocusable and isFocusableInTouchMode?

推荐答案

setFocusable 主要用于(使用上/下/下键)使两个触摸模式和键盘模式/禁用视图的焦点事件。

setFocusable mainly used for enable/disable view's focus event on both touch mode and keypad mode( using up/down/next key).

setFocusableInTouchMode 主要用于启用触摸模式/禁用视图的焦点事件孤单。

setFocusableInTouchMode mainly used for enable/disable view's focus event on touch mode alone.

如果您是残疾人的 setFocusable 也禁用触摸模式下的视图的焦点事件。

If you are disabled setFocusable it also disabled the view's focus event on touch mode.

这篇关于setFocusable和setFocusableInTouchMode之间的区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆