ResourcesCompat
Helper for accessing features in Resources.
Types
Link copied to clipboard
Interface used to receive asynchronous font fetching events.
Link copied to clipboard
class ThemeCompat
Provides backward-compatible implementations for new Theme APIs.
Functions
Link copied to clipboard
Clears cached values associated with the specified Theme.
Link copied to clipboard
@Nullable
Returns a cached font Typeface associated with a particular resource ID.
Link copied to clipboard
@Nullable
Returns a themed color state list associated with a particular resource ID.
Link copied to clipboard
@Nullable
Return a drawable object associated with a particular resource ID and styled for the specified theme.
Link copied to clipboard
@Nullable
Return a drawable object associated with a particular resource ID for the given screen density in DPI and styled for the specified theme.
Link copied to clipboard
Returns a font Typeface associated with a particular resource ID.
open fun getFont(@NonNull context: @NonNull Context, @FontRes id: Int, @NonNull fontCallback: @NonNull ResourcesCompat.FontCallback, @Nullable handler: @Nullable Handler)
Returns a font Typeface associated with a particular resource ID asynchronously.
@Nullable
Used by TintTypedArray.