Drawable Utils
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun createOvalIcon(@NonNull context: Context, @ColorRes backgroundColor: Int, @DrawableRes iconRes: Int, @ColorRes iconTint: Int): Drawable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun createRoundedSelector(selectedColor: Int, defaultColor: Int, radius: Int): StateListDrawable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setTintList(@Nullable drawable: Drawable, @Nullable colorStateList: ColorStateList): Drawable
open fun setTintList(@NonNull context: Context, @NonNull drawable: Drawable, colorRes: Int): Drawable
open fun setTintList(@NonNull context: Context, resId: Int, @Nullable colorStateList: ColorStateList): Drawable