Stay organized with collections
Save and categorize content based on your preferences.
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
Inherited methods |
From class
androidx.appcompat.app.AppCompatViewInflater
AppCompatAutoCompleteTextView
|
createAutoCompleteTextView(Context arg0, AttributeSet arg1)
|
AppCompatButton
|
createButton(Context arg0, AttributeSet arg1)
|
AppCompatCheckBox
|
createCheckBox(Context arg0, AttributeSet arg1)
|
AppCompatCheckedTextView
|
createCheckedTextView(Context arg0, AttributeSet arg1)
|
AppCompatEditText
|
createEditText(Context arg0, AttributeSet arg1)
|
AppCompatImageButton
|
createImageButton(Context arg0, AttributeSet arg1)
|
AppCompatImageView
|
createImageView(Context arg0, AttributeSet arg1)
|
AppCompatMultiAutoCompleteTextView
|
createMultiAutoCompleteTextView(Context arg0, AttributeSet arg1)
|
AppCompatRadioButton
|
createRadioButton(Context arg0, AttributeSet arg1)
|
AppCompatRatingBar
|
createRatingBar(Context arg0, AttributeSet arg1)
|
AppCompatSeekBar
|
createSeekBar(Context arg0, AttributeSet arg1)
|
AppCompatSpinner
|
createSpinner(Context arg0, AttributeSet arg1)
|
AppCompatTextView
|
createTextView(Context arg0, AttributeSet arg1)
|
AppCompatToggleButton
|
createToggleButton(Context arg0, AttributeSet arg1)
|
View
|
createView(Context arg0, String arg1, AttributeSet arg2)
|
final
View
|
createView(View arg0, String arg1, Context arg2, AttributeSet arg3, boolean arg4, boolean arg5, boolean arg6, boolean arg7)
|
|
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
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 |
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 |
|
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 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# MaterialComponentsViewInflater\n\nSummary: [Ctors](#pubctors) \\| [Protected Methods](#promethods) \\| [Inherited Methods](#inhmethods) \n\nMaterialComponentsViewInflater\n==============================\n\n\n`\npublic\n\n\nclass\nMaterialComponentsViewInflater\n`\n\n\n`\n\n\n`\n\n`\n\nextends AppCompatViewInflater\n\n\n`\n\n`\n\n\n`\n\n|---|---|------------------------------------------------------------------|\n| java.lang.Object |||\n| ↳ | androidx.appcompat.app.AppCompatViewInflater ||\n| | ↳ | com.google.android.material.theme.MaterialComponentsViewInflater |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn extension of [AppCompatViewInflater](/reference/androidx/appcompat/app/AppCompatViewInflater) that replaces some framework widgets with Material\nComponents ones at inflation time, provided a Material Components theme is in use.\n\nSummary\n-------\n\n| ### Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[MaterialComponentsViewInflater](/reference/com/google/android/material/theme/MaterialComponentsViewInflater#MaterialComponentsViewInflater())`() ` |\n\n| ### Protected methods ||\n|----------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` AppCompatAutoCompleteTextView` | ` `[createAutoCompleteTextView](/reference/com/google/android/material/theme/MaterialComponentsViewInflater#createAutoCompleteTextView(android.content.Context,%20android.util.AttributeSet))`(Context context, AttributeSet attrs) ` |\n| ` AppCompatButton` | ` `[createButton](/reference/com/google/android/material/theme/MaterialComponentsViewInflater#createButton(android.content.Context,%20android.util.AttributeSet))`(Context context, AttributeSet attrs) ` |\n| ` AppCompatCheckBox` | ` `[createCheckBox](/reference/com/google/android/material/theme/MaterialComponentsViewInflater#createCheckBox(android.content.Context,%20android.util.AttributeSet))`(Context context, AttributeSet attrs) ` |\n| ` AppCompatRadioButton` | ` `[createRadioButton](/reference/com/google/android/material/theme/MaterialComponentsViewInflater#createRadioButton(android.content.Context,%20android.util.AttributeSet))`(Context context, AttributeSet attrs) ` |\n| ` AppCompatTextView` | ` `[createTextView](/reference/com/google/android/material/theme/MaterialComponentsViewInflater#createTextView(android.content.Context,%20android.util.AttributeSet))`(Context context, AttributeSet attrs) ` |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` androidx.appcompat.app.AppCompatViewInflater ` |---------------------------------------|---------------------------------------------------------------------------------------------------------------------------------| | ` AppCompatAutoCompleteTextView` | ` createAutoCompleteTextView(Context arg0, AttributeSet arg1) ` | | ` AppCompatButton` | ` createButton(Context arg0, AttributeSet arg1) ` | | ` AppCompatCheckBox` | ` createCheckBox(Context arg0, AttributeSet arg1) ` | | ` AppCompatCheckedTextView` | ` createCheckedTextView(Context arg0, AttributeSet arg1) ` | | ` AppCompatEditText` | ` createEditText(Context arg0, AttributeSet arg1) ` | | ` AppCompatImageButton` | ` createImageButton(Context arg0, AttributeSet arg1) ` | | ` AppCompatImageView` | ` createImageView(Context arg0, AttributeSet arg1) ` | | ` AppCompatMultiAutoCompleteTextView` | ` createMultiAutoCompleteTextView(Context arg0, AttributeSet arg1) ` | | ` AppCompatRadioButton` | ` createRadioButton(Context arg0, AttributeSet arg1) ` | | ` AppCompatRatingBar` | ` createRatingBar(Context arg0, AttributeSet arg1) ` | | ` AppCompatSeekBar` | ` createSeekBar(Context arg0, AttributeSet arg1) ` | | ` AppCompatSpinner` | ` createSpinner(Context arg0, AttributeSet arg1) ` | | ` AppCompatTextView` | ` createTextView(Context arg0, AttributeSet arg1) ` | | ` AppCompatToggleButton` | ` createToggleButton(Context arg0, AttributeSet arg1) ` | | ` View` | ` createView(Context arg0, String arg1, AttributeSet arg2) ` | | ` final View` | ` createView(View arg0, String arg1, Context arg2, AttributeSet arg3, boolean arg4, boolean arg5, boolean arg6, boolean arg7) ` | ||\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` 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() ` | ||\n\nPublic constructors\n-------------------\n\n### MaterialComponentsViewInflater\n\n```\npublic MaterialComponentsViewInflater ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nProtected methods\n-----------------\n\n### createAutoCompleteTextView\n\n```\nprotected AppCompatAutoCompleteTextView createAutoCompleteTextView (Context context, \n AttributeSet attrs)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-----------------------|\n| `context` | `Context` \u003cbr /\u003e |\n| `attrs` | `AttributeSet` \u003cbr /\u003e |\n\n| Returns ||\n|---------------------------------|--------|\n| `AppCompatAutoCompleteTextView` | \u003cbr /\u003e |\n\n### createButton\n\n```\nprotected AppCompatButton createButton (Context context, \n AttributeSet attrs)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-----------------------|\n| `context` | `Context` \u003cbr /\u003e |\n| `attrs` | `AttributeSet` \u003cbr /\u003e |\n\n| Returns ||\n|-------------------|--------|\n| `AppCompatButton` | \u003cbr /\u003e |\n\n### createCheckBox\n\n```\nprotected AppCompatCheckBox createCheckBox (Context context, \n AttributeSet attrs)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-----------------------|\n| `context` | `Context` \u003cbr /\u003e |\n| `attrs` | `AttributeSet` \u003cbr /\u003e |\n\n| Returns ||\n|---------------------|--------|\n| `AppCompatCheckBox` | \u003cbr /\u003e |\n\n### createRadioButton\n\n```\nprotected AppCompatRadioButton createRadioButton (Context context, \n AttributeSet attrs)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-----------------------|\n| `context` | `Context` \u003cbr /\u003e |\n| `attrs` | `AttributeSet` \u003cbr /\u003e |\n\n| Returns ||\n|------------------------|--------|\n| `AppCompatRadioButton` | \u003cbr /\u003e |\n\n### createTextView\n\n```\nprotected AppCompatTextView createTextView (Context context, \n AttributeSet attrs)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-----------------------|\n| `context` | `Context` \u003cbr /\u003e |\n| `attrs` | `AttributeSet` \u003cbr /\u003e |\n\n| Returns ||\n|---------------------|--------|\n| `AppCompatTextView` | \u003cbr /\u003e |"]]