MaterialComponentsViewInflater

public class MaterialComponentsViewInflater
extends AppCompatViewInflater

java.lang.Object
   ↳ androidx.appcompat.app.AppCompatViewInflater
     ↳ com.google.android.material.theme.MaterialComponentsViewInflater


An extension of AppCompatViewInflater that replaces some framework widgets with Material Components ones at inflation time, provided a Material Components theme is in use.

Summary

Public constructors

MaterialComponentsViewInflater()

Protected methods

AppCompatAutoCompleteTextView createAutoCompleteTextView(Context context, AttributeSet attrs)
AppCompatButton createButton(Context context, AttributeSet attrs)
AppCompatCheckBox createCheckBox(Context context, AttributeSet attrs)
AppCompatRadioButton createRadioButton(Context context, AttributeSet attrs)
AppCompatTextView createTextView(Context context, AttributeSet attrs)

Inherited methods

Public constructors

MaterialComponentsViewInflater

public MaterialComponentsViewInflater ()

Protected methods

createAutoCompleteTextView

protected AppCompatAutoCompleteTextView createAutoCompleteTextView (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatAutoCompleteTextView

createButton

protected AppCompatButton createButton (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatButton

createCheckBox

protected AppCompatCheckBox createCheckBox (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatCheckBox

createRadioButton

protected AppCompatRadioButton createRadioButton (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatRadioButton

createTextView

protected AppCompatTextView createTextView (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Returns
AppCompatTextView