Package-level declarations

Types

Link copied to clipboard

Created by Johan Halin on 4.9.2023. Copyright © 2023 Richie Ltd. All rights reserved.

Link copied to clipboard

Call notifyChange when updating contents either via initializeDefaultColorProvider or setProvider.

Link copied to clipboard
object ColorStateListProvider : BaseObservable
Link copied to clipboard

Created by Johan Halin on 12.5.2022. Copyright © 2022 Richie Ltd. All rights reserved.

Link copied to clipboard

Created by Johan Halin on 13.6.2022. Copyright © 2022 Richie Ltd. All rights reserved.

Link copied to clipboard
data class DrawableItem(val drawable: Drawable, val id: Int? = null, val state: Int? = null)
Link copied to clipboard
object DrawableProvider : BaseObservable

Created by Johan Halin on 6.9.2023. Copyright © 2023 Richie Ltd. All rights reserved.

Link copied to clipboard

Created by Johan Halin on 18.5.2022. Copyright © 2022 Richie Ltd. All rights reserved.

Functions

Link copied to clipboard
fun bitmap(resources: Resources, resourceId: Int, tintColor: Int): Drawable
Link copied to clipboard
fun clip(drawable: Drawable): ClipDrawable
Link copied to clipboard
fun color(color: Int): ColorDrawable
Link copied to clipboard
fun getFontOrNull(context: Context, id: Int): Typeface?

Created by Johan Halin on 10.5.2022. Copyright © 2022 Richie Ltd. All rights reserved.

Link copied to clipboard
fun gradient(orientation: GradientDrawable.Orientation, startColor: Int, endColor: Int, type: Int): GradientDrawable

Created by Johan Halin on 5.9.2023. Copyright © 2023 Richie Ltd. All rights reserved.

Link copied to clipboard
fun layerList(vararg layers: DrawableItem): LayerDrawable
Link copied to clipboard
fun line(strokeColor: Int, strokeWidth: Int, dashWidth: Float? = null, dashGap: Float? = null): GradientDrawable
Link copied to clipboard
fun oval(solidColor: Int? = null, strokeColor: Int? = null, strokeWidth: Int? = null): GradientDrawable
Link copied to clipboard
fun rectangle(solidColor: Int? = null, strokeColor: Int? = null, strokeWidth: Int? = null, cornerRadius: Float? = null): GradientDrawable
Link copied to clipboard
fun ring(thickness: Int? = null, strokeColor: Int? = null, strokeWidth: Int? = null, sweepColor: Int? = null): GradientDrawable
Link copied to clipboard
fun rotate(fromDegrees: Float, toDegrees: Float, drawable: Drawable): RotateDrawable
Link copied to clipboard
Link copied to clipboard