Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.appcompat:appcompat:1.0.0-rc01

AppCompatViewInflater

public class AppCompatViewInflater
extends Object

java.lang.Object
   ↳ androidx.appcompat.app.AppCompatViewInflater


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

Protected methods

AppCompatAutoCompleteTextView createAutoCompleteTextView(Context context, AttributeSet attrs)
AppCompatButton createButton(Context context, AttributeSet attrs)
AppCompatCheckBox createCheckBox(Context context, AttributeSet attrs)
AppCompatCheckedTextView createCheckedTextView(Context context, AttributeSet attrs)
AppCompatEditText createEditText(Context context, AttributeSet attrs)
AppCompatImageButton createImageButton(Context context, AttributeSet attrs)
AppCompatImageView createImageView(Context context, AttributeSet attrs)
AppCompatMultiAutoCompleteTextView createMultiAutoCompleteTextView(Context context, AttributeSet attrs)
AppCompatRadioButton createRadioButton(Context context, AttributeSet attrs)
AppCompatRatingBar createRatingBar(Context context, AttributeSet attrs)
AppCompatSeekBar createSeekBar(Context context, AttributeSet attrs)
AppCompatSpinner createSpinner(Context context, AttributeSet attrs)
AppCompatTextView createTextView(Context context, AttributeSet attrs)
View createView(Context context, String name, AttributeSet attrs)

Inherited methods

Public constructors

AppCompatViewInflater

added in version 1.0.0
public AppCompatViewInflater ()

Protected methods

createAutoCompleteTextView

added in version 1.0.0
protected AppCompatAutoCompleteTextView createAutoCompleteTextView (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatAutoCompleteTextView

createButton

added in version 1.0.0
protected AppCompatButton createButton (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatButton

createCheckBox

added in version 1.0.0
protected AppCompatCheckBox createCheckBox (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatCheckBox

createCheckedTextView

added in version 1.0.0
protected AppCompatCheckedTextView createCheckedTextView (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatCheckedTextView

createEditText

added in version 1.0.0
protected AppCompatEditText createEditText (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatEditText

createImageButton

added in version 1.0.0
protected AppCompatImageButton createImageButton (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatImageButton

createImageView

added in version 1.0.0
protected AppCompatImageView createImageView (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatImageView

createMultiAutoCompleteTextView

added in version 1.0.0
protected AppCompatMultiAutoCompleteTextView createMultiAutoCompleteTextView (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatMultiAutoCompleteTextView

createRadioButton

added in version 1.0.0
protected AppCompatRadioButton createRadioButton (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatRadioButton

createRatingBar

added in version 1.0.0
protected AppCompatRatingBar createRatingBar (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatRatingBar

createSeekBar

added in version 1.0.0
protected AppCompatSeekBar createSeekBar (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatSeekBar

createSpinner

added in version 1.0.0
protected AppCompatSpinner createSpinner (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatSpinner

createTextView

added in version 1.0.0
protected AppCompatTextView createTextView (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatTextView

createView

added in version 1.0.0
protected View createView (Context context, 
                String name, 
                AttributeSet attrs)

Parameters
context Context

name String

attrs AttributeSet

Returns
View