What does the activation state of the view mean?

I read the description of the isActivated methods:

Indicates the activation state of this view.

and setActivated

Changes the activated state of this view. A view can be activated or not. Note that it is not the same as selection. Selection is a transient property, which represents the user is currently interacting with. It can be used for all users. For example, the selection is activated. (Um, yeah, we are deeply sorry about the terminology here.)

but it's still not clear what it means when the view is activated or not ...

    1 answer 1

    View.isActivated

    returns true if the view is used when it is activated as a permanent selection (for example, to “highlight” a previously selected list item in constant navigation mode)

    returns false if the view is used when the object is not activated

    An example is, for example, a subgroup (branch) of a tree list. When you click on it, it is highlighted in a different color and indicates that it is open.

    The android:state_activated can be found in the selector .. Just like state_pressed or state_focused

    • And what does "constant navigation mode" mean? - Ksenia
    • It seems to me that activated will soon be deprecated . ListView from inside calls the setSelected setSelected(true) method in the setSelected(true) , thereby enabling state_selected in the item selector. I have not encountered anywhere that I had to specify state_activated . Well, on your question .. I did not understand it myself, this is a translation of one of the questions on enSO - Flippy
    • By the way, here’s an example on github where it is used github.com/ag12/Rabbit-Android/blob/… - Flippy
    • But the use of github.com/sirchip/spotifystreamer/blob/… in the code is what I said. - Flippy