LeanbackAppCompatViewInflater


public class LeanbackAppCompatViewInflater extends AppCompatViewInflater


Inflater that converts leanback non-AppCpmpat views in layout to AppCompat versions.

Summary

Public constructors

Protected methods

@NonNull View
createView(
    @Nullable Context context,
    @Nullable String name,
    @Nullable AttributeSet attrs
)

Inherited methods

From androidx.appcompat.app.AppCompatViewInflater
@NonNull AppCompatAutoCompleteTextView
@NonNull AppCompatButton
createButton(Context context, AttributeSet attrs)
@NonNull AppCompatCheckBox
@NonNull AppCompatCheckedTextView
@NonNull AppCompatEditText
@NonNull AppCompatImageButton
@NonNull AppCompatImageView
@NonNull AppCompatMultiAutoCompleteTextView
@NonNull AppCompatRadioButton
@NonNull AppCompatRatingBar
@NonNull AppCompatSeekBar
@NonNull AppCompatSpinner
@NonNull AppCompatTextView
@NonNull AppCompatToggleButton
final @Nullable View
createView(
    @Nullable View parent,
    @NonNull String name,
    @NonNull Context context,
    @NonNull AttributeSet attrs,
    boolean inheritContext,
    boolean readAndroidTheme,
    boolean readAppTheme,
    boolean wrapContext
)

Creates an AppCompat-compatible widget by automatically "substituting" all usages of core Android widgets with the AppCompat extensions of those widgets.

Public constructors

LeanbackAppCompatViewInflater

Added in 1.2.0-alpha04
public LeanbackAppCompatViewInflater()

Protected methods

createView

protected @NonNull View createView(
    @Nullable Context context,
    @Nullable String name,
    @Nullable AttributeSet attrs
)