# 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)

*** ** * ** ***


```
public class AsyncAppCompatFactory implements 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/androidx/asynclayoutinflater/appcompat/AsyncAppCompatFactory#AsyncAppCompatFactory()()` |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/view/View.html` | `https://developer.android.com/reference/androidx/asynclayoutinflater/appcompat/AsyncAppCompatFactory#onCreateView(java.lang.String,android.content.Context,android.util.AttributeSet)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html name, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/util/AttributeSet.html attrs )` Creates view using `https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater`. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/view/View.html` | `https://developer.android.com/reference/androidx/asynclayoutinflater/appcompat/AsyncAppCompatFactory#onCreateView(android.view.View,java.lang.String,android.content.Context,android.util.AttributeSet)( @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/view/View.html parent, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html name, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/util/AttributeSet.html attrs )` Creates view using `https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater`. |

## Public constructors

### AsyncAppCompatFactory

Added in 1.1.0

```
public AsyncAppCompatFactory()
```

## Public methods

### onCreateView

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

```
public @Nullable View onCreateView(
    @NonNull String name,
    @NonNull Context context,
    @NonNull AttributeSet attrs
)
```

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

### onCreateView

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

```
public @Nullable View onCreateView(
    @Nullable View parent,
    @NonNull String name,
    @NonNull Context context,
    @NonNull AttributeSet attrs
)
```

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