# LeanbackAppCompatViewInflater

Artifact: [androidx.leanback:leanback](https://developer.android.com/jetpack/androidx/releases/leanback) [View Source](https://cs.android.com/search?q=file:androidx/leanback/widget/LeanbackAppCompatViewInflater.java+class:androidx.leanback.widget.LeanbackAppCompatViewInflater) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.2.0)

*** ** * ** ***


```
public class LeanbackAppCompatViewInflater extends AppCompatViewInflater
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.appcompat.app.AppCompatViewInflater](https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater) ||
|   | ↳ | [androidx.leanback.widget.LeanbackAppCompatViewInflater](https://developer.android.com/reference/androidx/leanback/widget/LeanbackAppCompatViewInflater) |

*** ** * ** ***

Inflater that converts leanback non-AppCpmpat views in layout to AppCompat versions.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/leanback/widget/LeanbackAppCompatViewInflater#LeanbackAppCompatViewInflater()()` |

| ### Protected methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/view/View.html` | `https://developer.android.com/reference/androidx/leanback/widget/LeanbackAppCompatViewInflater#createView(android.content.Context,java.lang.String,android.util.AttributeSet)( @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/content/Context.html context, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html name, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/util/AttributeSet.html attrs )` |

| ### Inherited methods |
|---|
| From [androidx.appcompat.app.AppCompatViewInflater](https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater) |---|---| | `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appcompat/widget/AppCompatAutoCompleteTextView` | `https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater#createAutoCompleteTextView(android.content.Context,android.util.AttributeSet)(https://developer.android.com/reference/android/content/Context.html context, https://developer.android.com/reference/android/util/AttributeSet.html attrs)` | | `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appcompat/widget/AppCompatButton` | `https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater#createButton(android.content.Context,android.util.AttributeSet)(https://developer.android.com/reference/android/content/Context.html context, https://developer.android.com/reference/android/util/AttributeSet.html attrs)` | | `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appcompat/widget/AppCompatCheckBox` | `https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater#createCheckBox(android.content.Context,android.util.AttributeSet)(https://developer.android.com/reference/android/content/Context.html context, https://developer.android.com/reference/android/util/AttributeSet.html attrs)` | | `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appcompat/widget/AppCompatCheckedTextView` | `https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater#createCheckedTextView(android.content.Context,android.util.AttributeSet)(https://developer.android.com/reference/android/content/Context.html context, https://developer.android.com/reference/android/util/AttributeSet.html attrs)` | | `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appcompat/widget/AppCompatEditText` | `https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater#createEditText(android.content.Context,android.util.AttributeSet)(https://developer.android.com/reference/android/content/Context.html context, https://developer.android.com/reference/android/util/AttributeSet.html attrs)` | | `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appcompat/widget/AppCompatImageButton` | `https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater#createImageButton(android.content.Context,android.util.AttributeSet)(https://developer.android.com/reference/android/content/Context.html context, https://developer.android.com/reference/android/util/AttributeSet.html attrs)` | | `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appcompat/widget/AppCompatImageView` | `https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater#createImageView(android.content.Context,android.util.AttributeSet)(https://developer.android.com/reference/android/content/Context.html context, https://developer.android.com/reference/android/util/AttributeSet.html attrs)` | | `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appcompat/widget/AppCompatMultiAutoCompleteTextView` | `https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater#createMultiAutoCompleteTextView(android.content.Context,android.util.AttributeSet)(https://developer.android.com/reference/android/content/Context.html context, https://developer.android.com/reference/android/util/AttributeSet.html attrs)` | | `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appcompat/widget/AppCompatRadioButton` | `https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater#createRadioButton(android.content.Context,android.util.AttributeSet)(https://developer.android.com/reference/android/content/Context.html context, https://developer.android.com/reference/android/util/AttributeSet.html attrs)` | | `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appcompat/widget/AppCompatRatingBar` | `https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater#createRatingBar(android.content.Context,android.util.AttributeSet)(https://developer.android.com/reference/android/content/Context.html context, https://developer.android.com/reference/android/util/AttributeSet.html attrs)` | | `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appcompat/widget/AppCompatSeekBar` | `https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater#createSeekBar(android.content.Context,android.util.AttributeSet)(https://developer.android.com/reference/android/content/Context.html context, https://developer.android.com/reference/android/util/AttributeSet.html attrs)` | | `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appcompat/widget/AppCompatSpinner` | `https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater#createSpinner(android.content.Context,android.util.AttributeSet)(https://developer.android.com/reference/android/content/Context.html context, https://developer.android.com/reference/android/util/AttributeSet.html attrs)` | | `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appcompat/widget/AppCompatTextView` | `https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater#createTextView(android.content.Context,android.util.AttributeSet)(https://developer.android.com/reference/android/content/Context.html context, https://developer.android.com/reference/android/util/AttributeSet.html attrs)` | | `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appcompat/widget/AppCompatToggleButton` | `https://developer.android.com/reference/androidx/appcompat/app/AppCompatViewInflater#createToggleButton(android.content.Context,android.util.AttributeSet)(https://developer.android.com/reference/android/content/Context.html context, https://developer.android.com/reference/android/util/AttributeSet.html attrs)` | | `final @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/appcompat/app/AppCompatViewInflater#createView(android.view.View,java.lang.String,android.content.Context,android.util.AttributeSet,boolean,boolean,boolean,boolean)( @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, boolean inheritContext, boolean readAndroidTheme, boolean readAppTheme, boolean wrapContext )` Creates an AppCompat-compatible widget by automatically "substituting" all usages of core Android widgets with the AppCompat extensions of those widgets. | |

## Public constructors

### LeanbackAppCompatViewInflater

Added in 1.2.0

```
public LeanbackAppCompatViewInflater()
```

## Protected methods

### createView

```
protected @NonNull View createView(
    @Nullable Context context,
    @Nullable String name,
    @Nullable AttributeSet attrs
)
```