# AsyncAppCompatFactory

Artifact: [androidx.asynclayoutinflater:asynclayoutinflater-appcompat](https://developer.android.com/jetpack/androidx/releases/asynclayoutinflater) [View Source](https://cs.android.com/search?q=file:androidx/asynclayoutinflater/appcompat/AsyncAppCompatFactory.java+class:androidx.asynclayoutinflater.appcompat.AsyncAppCompatFactory) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/asynclayoutinflater#1.1.0)

*** ** * ** ***


```
class AsyncAppCompatFactory : AsyncLayoutFactory
```

<br />

*** ** * ** ***

Factory for inflating views in AppCompat activity. This is used when Async inflater is created with AppCompat context.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/asynclayoutinflater/appcompat/AsyncAppCompatFactory#AsyncAppCompatFactory()()` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/android/view/View.html?` | `https://developer.android.com/reference/kotlin/androidx/asynclayoutinflater/appcompat/AsyncAppCompatFactory#onCreateView(java.lang.String,android.content.Context,android.util.AttributeSet)(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, context: https://developer.android.com/reference/android/content/Context.html, attrs: https://developer.android.com/reference/android/util/AttributeSet.html)` Creates view using `https://developer.android.com/reference/kotlin/androidx/appcompat/app/AppCompatViewInflater`. |
| `https://developer.android.com/reference/android/view/View.html?` | `https://developer.android.com/reference/kotlin/androidx/asynclayoutinflater/appcompat/AsyncAppCompatFactory#onCreateView(android.view.View,java.lang.String,android.content.Context,android.util.AttributeSet)( parent: https://developer.android.com/reference/android/view/View.html?, name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, context: https://developer.android.com/reference/android/content/Context.html, attrs: https://developer.android.com/reference/android/util/AttributeSet.html )` Creates view using `https://developer.android.com/reference/kotlin/androidx/appcompat/app/AppCompatViewInflater`. |

## Public constructors

### AsyncAppCompatFactory

Added in 1.1.0

```
AsyncAppCompatFactory()
```

## Public functions

### onCreateView

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/asynclayoutinflater#1.1.0)

```
fun onCreateView(name: String, context: Context, attrs: AttributeSet): View?
```

Creates view using `https://developer.android.com/reference/kotlin/androidx/appcompat/app/AppCompatViewInflater`.

### onCreateView

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/asynclayoutinflater#1.1.0)

```
fun onCreateView(
    parent: View?,
    name: String,
    context: Context,
    attrs: AttributeSet
): View?
```

Creates view using `https://developer.android.com/reference/kotlin/androidx/appcompat/app/AppCompatViewInflater`.