gpt4 book ai didi

android - View.isActivated() 是做什么的?

转载 作者:可可西里 更新时间:2023-10-31 22:03:33 31 4
gpt4 key购买 nike

我最近遇到了 View.isActivated() 方法,但不确定它的作用。 documentation说:

public boolean isActivated ()

Indicates the activation state of this view.

Returns true if the view is activated, false otherwise

View 的状态是什么意思? View 何时激活与不激活?

最佳答案

Activation is a longer-term state that the user can move views in and out of. For example, in a list view with single or multiple selection enabled, the views in the current selection set are activated. (Um, yeah, we are deeply sorry about the terminology here.) The activated state is propagated down to children of the view it is set on.

来源:http://developer.android.com/reference/android/view/View.html#setActivated(boolean)

关于android - View.isActivated() 是做什么的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31020918/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com