getColorStateList

open fun getColorStateList(@NonNull context: Context, @AttrRes colorAttributeResId: Int, @NonNull defaultValue: ColorStateList): ColorStateList

Returns the color state list for the provided theme color attribute, or the default value if the attribute is not set in the current theme.