{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

TreeIterables.ViewAndDistance

public class TreeIterables.ViewAndDistance


Represents the distance a given view is from the root view.

Summary

Public constructors

Public methods

int
View

Public constructors

ViewAndDistance

public final ViewAndDistance()

Public methods

getDistanceFromRoot

public int getDistanceFromRoot()

getView

public View getView()