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

TreeIterables.ViewAndDistance

class TreeIterables.ViewAndDistance


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

Summary

Public constructors

Public functions

Int
View!

Public constructors

ViewAndDistance

ViewAndDistance()

Public functions

getDistanceFromRoot

fun getDistanceFromRoot(): Int

getView

fun getView(): View!