state_activated,state_selected,STATE_ pressed,state_focused的解释的ListView [英] Explanation of state_activated, state_selected, state_pressed, state_focused for ListView
本文介绍了state_activated,state_selected,STATE_ pressed,state_focused的解释的ListView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
谁能解释(或点我一个解释的链接)之间state_activated,state_selected,STATE_ pressed的差异,state_focused的ListView的项目?难道他们的列表视图的所有有效状态?不要紧,如果触摸或键盘正在使用? 此链接似乎不再是有效的。
Can anyone explain (or point me to a link that explains) the difference between state_activated, state_selected, state_pressed, and state_focused for ListView items? Are they all valid states for ListViews? Does it matter if touch or a keyboard are being used? This link no longer seems to be valid.
非常感谢!
推荐答案
-
state_selected
是当一个项目使用的是被选择使用 键盘/ DPAD /轨迹球/等。 -
state_activated
时使用View.setActivated(真)被调用。本 用于持续性的选择(请参阅设置的平板电脑 例如) -
STATE_ pressed
当用户为pressing该项目无论是用于 通过触摸或键盘或鼠标 -
state_focused
时,如果该项目被标记为可聚焦和接收 聚焦或者通过一个键盘/ DPAD /轨迹球/等的用户。或者,如果 该产品可聚焦在触摸模式
state_selected
is used when an item is selected using a keyboard/dpad/trackball/etc.state_activated
is used when View.setActivated(true) is called. This is used for "persistent selection" (see Settings on tablet for instance)state_pressed
is used when the user is pressing the item either through touch or a keyboard or a mousestate_focused
is used if the item is marked focusable and it receives focus either through the user of a keyboard/dpad/trackball/etc. or if the item is focusable in touch mode
这篇关于state_activated,state_selected,STATE_ pressed,state_focused的解释的ListView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文