MaterialComponentsViewInflater


Kotlin |Java

public class 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

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)

Public constructors

MaterialComponentsViewInflater

public MaterialComponentsViewInflater()

Protected methods

createAutoCompleteTextView

protected AppCompatAutoCompleteTextView createAutoCompleteTextView(Context context, AttributeSet attrs)

createButton

protected AppCompatButton createButton(Context context, AttributeSet attrs)

createCheckBox

protected AppCompatCheckBox createCheckBox(Context context, AttributeSet attrs)

createRadioButton

protected AppCompatRadioButton createRadioButton(Context context, AttributeSet attrs)

createTextView

protected AppCompatTextView createTextView(Context context, AttributeSet attrs)

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026年05月14日 UTC.