---
title: "findViewByAccessibilityIdTraversal"
description: "This overrides an @hide method in ViewGroup."
type: "function"
lastmod: "2026-08-27"
---
## API Reference

### findViewByAccessibilityIdTraversal

> Source set: Android

```kotlin
fun findViewByAccessibilityIdTraversal(accessibilityId: Int): View?
```

This overrides an @hide method in ViewGroup. Because of the @hide, the override keyword
cannot be used, but the override works anyway because the ViewGroup method is not final. In
Android P and earlier, the call path is
AccessibilityInteractionController#findViewByAccessibilityId ->
View#findViewByAccessibilityId -> ViewGroup#findViewByAccessibilityIdTraversal. In Android Q
and later, AccessibilityInteractionController#findViewByAccessibilityId uses
AccessibilityNodeIdManager and findViewByAccessibilityIdTraversal is only used by autofill.
