# AsyncLayoutFactory

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

*** ** * ** ***


```
public interface AsyncLayoutFactory extends LayoutInflater.Factory2
```

<br />

Known direct subclasses [AsyncAppCompatFactory](https://developer.android.com/reference/androidx/asynclayoutinflater/appcompat/AsyncAppCompatFactory)

|---|---|
| `https://developer.android.com/reference/androidx/asynclayoutinflater/appcompat/AsyncAppCompatFactory` | Factory for inflating views in AppCompat activity. |

*** ** * ** ***

Provides a layout inflater that can safely be used with AsyncLayoutInflater. Every inflation by this factory happens on the same background thread created by AsyncLayoutInflater.

## Summary

| ### Inherited methods |
|---|
| From [android.view.LayoutInflater.Factory2](https://developer.android.com/reference/android/view/LayoutInflater.Factory2.html) |---|---| | `abstract https://developer.android.com/reference/android/view/View.html` | `https://developer.android.com/reference/android/view/LayoutInflater.Factory2.html#onCreateView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet)(https://developer.android.com/reference/android/view/View.html p, https://developer.android.com/reference/java/lang/String.html p1, https://developer.android.com/reference/android/content/Context.html p2, https://developer.android.com/reference/android/util/AttributeSet.html p3)` | |