android:聚焦、启用、按下和选择状态之间有什么区别? [英] android: what is the difference between focused, enabled, pressed, and selected states?

查看:11
本文介绍了android:聚焦、启用、按下和选择状态之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看了http://developer.android.com/reference/android/view/View.html 找出差异,但无法理解.我只是部分理解了选择"状态.

I looked at http://developer.android.com/reference/android/view/View.html to figure out the differences but could not understand much. I only partly understood the "selected" state.

有人可以用一些可靠的例子来解释这些差异吗?我希望我的问题不是很模糊.如果是的话,如果有人能帮我改进它就太好了,因为我不知道如何问得更清楚.

Can somebody explain the differences with some solid examples? I hope my question is not very vague. If it is, it would be great if somebody can help me improve it because I don't know how to ask it more clearly.

提前致谢.

推荐答案

已启用 -> 可以进行用户交互.

Enabled -> User Interaction possible.

禁用 -> 无法进行用户交互.

Disabled -> User interaction not possible.

  • 如果您将鼠标悬停在小部件上,它会聚焦
  • 如果您按下(半点击)那个小部件,它就会按下
  • 如果在鼠标位于同一位置时按下和按下,则选中

这篇关于android:聚焦、启用、按下和选择状态之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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