# AppCompatViewInflater

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:appcompat-v7:28.0.0-alpha1  
Summary:[Ctors](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#pubctors)\|[Protected Methods](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#promethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#)  

# AppCompatViewInflater

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public


class
AppCompatViewInflater
`  
`

extends Object


``


`

|---|----------------------------------------------|
| java.lang.Object                                ||
| ↳ | android.support.v7.app.AppCompatViewInflater |

<br />

*** ** * ** ***

This class is responsible for manually inflating our tinted widgets.

This class two main responsibilities: the first is to 'inject' our tinted views in place of the framework versions in layout inflation; the second is backport the`android:theme`functionality for any inflated widgets. This include theme inheritance from its parent.

## Summary

|                                                             ### Public constructors                                                              ||
|-----------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[AppCompatViewInflater](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#AppCompatViewInflater())`() ` |

|                                                                                                                                                                                                                                                                    ### Protected methods                                                                                                                                                                                                                                                                    ||
|-----------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[AppCompatAutoCompleteTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatAutoCompleteTextView)           | ` `[createAutoCompleteTextView](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#createAutoCompleteTextView(android.content.Context, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) `           |
| ` `[AppCompatButton](https://developer.android.com/reference/android/support/v7/widget/AppCompatButton)                                       | ` `[createButton](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#createButton(android.content.Context, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) `                                       |
| ` `[AppCompatCheckBox](https://developer.android.com/reference/android/support/v7/widget/AppCompatCheckBox)                                   | ` `[createCheckBox](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#createCheckBox(android.content.Context, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) `                                   |
| ` `[AppCompatCheckedTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatCheckedTextView)                     | ` `[createCheckedTextView](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#createCheckedTextView(android.content.Context, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) `                     |
| ` `[AppCompatEditText](https://developer.android.com/reference/android/support/v7/widget/AppCompatEditText)                                   | ` `[createEditText](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#createEditText(android.content.Context, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) `                                   |
| ` `[AppCompatImageButton](https://developer.android.com/reference/android/support/v7/widget/AppCompatImageButton)                             | ` `[createImageButton](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#createImageButton(android.content.Context, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) `                             |
| ` `[AppCompatImageView](https://developer.android.com/reference/android/support/v7/widget/AppCompatImageView)                                 | ` `[createImageView](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#createImageView(android.content.Context, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) `                                 |
| ` `[AppCompatMultiAutoCompleteTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatMultiAutoCompleteTextView) | ` `[createMultiAutoCompleteTextView](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#createMultiAutoCompleteTextView(android.content.Context, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) ` |
| ` `[AppCompatRadioButton](https://developer.android.com/reference/android/support/v7/widget/AppCompatRadioButton)                             | ` `[createRadioButton](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#createRadioButton(android.content.Context, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) `                             |
| ` `[AppCompatRatingBar](https://developer.android.com/reference/android/support/v7/widget/AppCompatRatingBar)                                 | ` `[createRatingBar](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#createRatingBar(android.content.Context, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) `                                 |
| ` `[AppCompatSeekBar](https://developer.android.com/reference/android/support/v7/widget/AppCompatSeekBar)                                     | ` `[createSeekBar](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#createSeekBar(android.content.Context, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) `                                     |
| ` `[AppCompatSpinner](https://developer.android.com/reference/android/support/v7/widget/AppCompatSpinner)                                     | ` `[createSpinner](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#createSpinner(android.content.Context, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) `                                     |
| ` `[AppCompatTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatTextView)                                   | ` `[createTextView](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#createTextView(android.content.Context, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) `                                   |
| ` `[View](https://developer.android.com/reference/android/view/View.html)                                                                     | ` `[createView](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#createView(android.content.Context, java.lang.String, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, String name, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) `            |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Public constructors

### AppCompatViewInflater

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AppCompatViewInflater ()
```

<br />

<br />

## Protected methods

### createAutoCompleteTextView

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AppCompatAutoCompleteTextView createAutoCompleteTextView (Context context, 
                AttributeSet attrs)
```

<br />

<br />

|            Parameters            ||
|-----------|-----------------------|
| `context` | `Context` <br />      |
| `attrs`   | `AttributeSet` <br /> |

|                                                                 Returns                                                                  ||
|----------------------------------------------------------------------------------------------------------------------------------|--------|
| [AppCompatAutoCompleteTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatAutoCompleteTextView) | <br /> |

### createButton

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AppCompatButton createButton (Context context, 
                AttributeSet attrs)
```

<br />

<br />

|            Parameters            ||
|-----------|-----------------------|
| `context` | `Context` <br />      |
| `attrs`   | `AttributeSet` <br /> |

|                                                   Returns                                                    ||
|------------------------------------------------------------------------------------------------------|--------|
| [AppCompatButton](https://developer.android.com/reference/android/support/v7/widget/AppCompatButton) | <br /> |

### createCheckBox

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AppCompatCheckBox createCheckBox (Context context, 
                AttributeSet attrs)
```

<br />

<br />

|            Parameters            ||
|-----------|-----------------------|
| `context` | `Context` <br />      |
| `attrs`   | `AttributeSet` <br /> |

|                                                     Returns                                                      ||
|----------------------------------------------------------------------------------------------------------|--------|
| [AppCompatCheckBox](https://developer.android.com/reference/android/support/v7/widget/AppCompatCheckBox) | <br /> |

### createCheckedTextView

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AppCompatCheckedTextView createCheckedTextView (Context context, 
                AttributeSet attrs)
```

<br />

<br />

|            Parameters            ||
|-----------|-----------------------|
| `context` | `Context` <br />      |
| `attrs`   | `AttributeSet` <br /> |

|                                                            Returns                                                             ||
|------------------------------------------------------------------------------------------------------------------------|--------|
| [AppCompatCheckedTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatCheckedTextView) | <br /> |

### createEditText

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AppCompatEditText createEditText (Context context, 
                AttributeSet attrs)
```

<br />

<br />

|            Parameters            ||
|-----------|-----------------------|
| `context` | `Context` <br />      |
| `attrs`   | `AttributeSet` <br /> |

|                                                     Returns                                                      ||
|----------------------------------------------------------------------------------------------------------|--------|
| [AppCompatEditText](https://developer.android.com/reference/android/support/v7/widget/AppCompatEditText) | <br /> |

### createImageButton

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AppCompatImageButton createImageButton (Context context, 
                AttributeSet attrs)
```

<br />

<br />

|            Parameters            ||
|-----------|-----------------------|
| `context` | `Context` <br />      |
| `attrs`   | `AttributeSet` <br /> |

|                                                        Returns                                                         ||
|----------------------------------------------------------------------------------------------------------------|--------|
| [AppCompatImageButton](https://developer.android.com/reference/android/support/v7/widget/AppCompatImageButton) | <br /> |

### createImageView

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AppCompatImageView createImageView (Context context, 
                AttributeSet attrs)
```

<br />

<br />

|            Parameters            ||
|-----------|-----------------------|
| `context` | `Context` <br />      |
| `attrs`   | `AttributeSet` <br /> |

|                                                      Returns                                                       ||
|------------------------------------------------------------------------------------------------------------|--------|
| [AppCompatImageView](https://developer.android.com/reference/android/support/v7/widget/AppCompatImageView) | <br /> |

### createMultiAutoCompleteTextView

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AppCompatMultiAutoCompleteTextView createMultiAutoCompleteTextView (Context context, 
                AttributeSet attrs)
```

<br />

<br />

|            Parameters            ||
|-----------|-----------------------|
| `context` | `Context` <br />      |
| `attrs`   | `AttributeSet` <br /> |

|                                                                      Returns                                                                       ||
|--------------------------------------------------------------------------------------------------------------------------------------------|--------|
| [AppCompatMultiAutoCompleteTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatMultiAutoCompleteTextView) | <br /> |

### createRadioButton

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AppCompatRadioButton createRadioButton (Context context, 
                AttributeSet attrs)
```

<br />

<br />

|            Parameters            ||
|-----------|-----------------------|
| `context` | `Context` <br />      |
| `attrs`   | `AttributeSet` <br /> |

|                                                        Returns                                                         ||
|----------------------------------------------------------------------------------------------------------------|--------|
| [AppCompatRadioButton](https://developer.android.com/reference/android/support/v7/widget/AppCompatRadioButton) | <br /> |

### createRatingBar

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AppCompatRatingBar createRatingBar (Context context, 
                AttributeSet attrs)
```

<br />

<br />

|            Parameters            ||
|-----------|-----------------------|
| `context` | `Context` <br />      |
| `attrs`   | `AttributeSet` <br /> |

|                                                      Returns                                                       ||
|------------------------------------------------------------------------------------------------------------|--------|
| [AppCompatRatingBar](https://developer.android.com/reference/android/support/v7/widget/AppCompatRatingBar) | <br /> |

### createSeekBar

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AppCompatSeekBar createSeekBar (Context context, 
                AttributeSet attrs)
```

<br />

<br />

|            Parameters            ||
|-----------|-----------------------|
| `context` | `Context` <br />      |
| `attrs`   | `AttributeSet` <br /> |

|                                                    Returns                                                     ||
|--------------------------------------------------------------------------------------------------------|--------|
| [AppCompatSeekBar](https://developer.android.com/reference/android/support/v7/widget/AppCompatSeekBar) | <br /> |

### createSpinner

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AppCompatSpinner createSpinner (Context context, 
                AttributeSet attrs)
```

<br />

<br />

|            Parameters            ||
|-----------|-----------------------|
| `context` | `Context` <br />      |
| `attrs`   | `AttributeSet` <br /> |

|                                                    Returns                                                     ||
|--------------------------------------------------------------------------------------------------------|--------|
| [AppCompatSpinner](https://developer.android.com/reference/android/support/v7/widget/AppCompatSpinner) | <br /> |

### createTextView

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AppCompatTextView createTextView (Context context, 
                AttributeSet attrs)
```

<br />

<br />

|            Parameters            ||
|-----------|-----------------------|
| `context` | `Context` <br />      |
| `attrs`   | `AttributeSet` <br /> |

|                                                     Returns                                                      ||
|----------------------------------------------------------------------------------------------------------|--------|
| [AppCompatTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatTextView) | <br /> |

### createView

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
View createView (Context context, 
                String name, 
                AttributeSet attrs)
```

<br />

<br />

|            Parameters            ||
|-----------|-----------------------|
| `context` | `Context` <br />      |
| `name`    | `String` <br />       |
| `attrs`   | `AttributeSet` <br /> |

|                                    Returns                                     ||
|------------------------------------------------------------------------|--------|
| [View](https://developer.android.com/reference/android/view/View.html) | <br /> |

-

  ## Interfaces

  - [ActionBar.OnMenuVisibilityListener](https://developer.android.com/reference/android/support/v7/app/ActionBar.OnMenuVisibilityListener)
  - [ActionBar.OnNavigationListener](https://developer.android.com/reference/android/support/v7/app/ActionBar.OnNavigationListener)
  - [ActionBar.TabListener](https://developer.android.com/reference/android/support/v7/app/ActionBar.TabListener)
  - [ActionBarDrawerToggle.Delegate](https://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle.Delegate)
  - [ActionBarDrawerToggle.DelegateProvider](https://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle.DelegateProvider)
  - [AppCompatCallback](https://developer.android.com/reference/android/support/v7/app/AppCompatCallback)
-

  ## Classes

  - [ActionBar](https://developer.android.com/reference/android/support/v7/app/ActionBar)
  - [ActionBar.LayoutParams](https://developer.android.com/reference/android/support/v7/app/ActionBar.LayoutParams)
  - [ActionBar.Tab](https://developer.android.com/reference/android/support/v7/app/ActionBar.Tab)
  - [ActionBarDrawerToggle](https://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle)
  - [AlertDialog](https://developer.android.com/reference/android/support/v7/app/AlertDialog)
  - [AlertDialog.Builder](https://developer.android.com/reference/android/support/v7/app/AlertDialog.Builder)
  - [AppCompatActivity](https://developer.android.com/reference/android/support/v7/app/AppCompatActivity)
  - [AppCompatDelegate](https://developer.android.com/reference/android/support/v7/app/AppCompatDelegate)
  - [AppCompatDialog](https://developer.android.com/reference/android/support/v7/app/AppCompatDialog)
  - [AppCompatDialogFragment](https://developer.android.com/reference/android/support/v7/app/AppCompatDialogFragment)
  - [AppCompatViewInflater](https://developer.android.com/reference/android/support/v7/app/AppCompatViewInflater)
  - [MediaRouteActionProvider](https://developer.android.com/reference/android/support/v7/app/MediaRouteActionProvider)
  - [MediaRouteButton](https://developer.android.com/reference/android/support/v7/app/MediaRouteButton)
  - [MediaRouteChooserDialog](https://developer.android.com/reference/android/support/v7/app/MediaRouteChooserDialog)
  - [MediaRouteChooserDialogFragment](https://developer.android.com/reference/android/support/v7/app/MediaRouteChooserDialogFragment)
  - [MediaRouteControllerDialog](https://developer.android.com/reference/android/support/v7/app/MediaRouteControllerDialog)
  - [MediaRouteControllerDialogFragment](https://developer.android.com/reference/android/support/v7/app/MediaRouteControllerDialogFragment)
  - [MediaRouteDialogFactory](https://developer.android.com/reference/android/support/v7/app/MediaRouteDialogFactory)
  - [MediaRouteDiscoveryFragment](https://developer.android.com/reference/android/support/v7/app/MediaRouteDiscoveryFragment)