ThemeEnforcement

Utility methods to check Theme compatibility with components.

Functions

Link copied to clipboard
open fun checkAppCompatTheme(@NonNull context: Context)
Link copied to clipboard
open fun checkMaterialTheme(@NonNull context: Context)
Link copied to clipboard
open fun isAppCompatTheme(@NonNull context: Context): Boolean
Link copied to clipboard
open fun isMaterial3Theme(@NonNull context: Context): Boolean
Link copied to clipboard
open fun isMaterialTheme(@NonNull context: Context): Boolean
Link copied to clipboard
open fun obtainStyledAttributes(@NonNull context: Context, set: AttributeSet, @NonNull @StyleableRes attrs: Array<Int>, @AttrRes defStyleAttr: Int, @StyleRes defStyleRes: Int, @StyleableRes textAppearanceResIndices: Array<Int>): TypedArray
Safely retrieve styled attribute information in this Context's theme, after checking whether the theme is compatible with the component's given style.
Link copied to clipboard
open fun obtainTintedStyledAttributes(@NonNull context: Context, set: AttributeSet, @NonNull @StyleableRes attrs: Array<Int>, @AttrRes defStyleAttr: Int, @StyleRes defStyleRes: Int, @StyleableRes textAppearanceResIndices: Array<Int>): TintTypedArray
Safely retrieve styled attribute information in this Context's theme using , after checking whether the theme is compatible with the component's given style.