---
title: "addAndroidView"
description: "Called to inform the owner that a new Android [View] was [attached][Owner.onPreAttach] to the hierarchy."
type: "function"
lastmod: "2026-08-27"
---
## API Reference

### addAndroidView

> Source set: Android

```kotlin
fun addAndroidView(view: AndroidViewHolder, layoutNode: LayoutNode)
```

Called to inform the owner that a new Android `View` was [attached](/jetpack-compose/androidx.compose.ui/ui/functions/onPreAttach/api) to the
hierarchy.
