Package-level declarations

Types

Link copied to clipboard
object BmpUtils
Link copied to clipboard

Merge position when using BmpUtils.mergeBitmap.

Link copied to clipboard
Link copied to clipboard
object QRCode

Properties

Link copied to clipboard

Left bottom corner radius(in pixels).

Link copied to clipboard

Left top corner radius(in pixels).

Link copied to clipboard

Right bottom corner radius(in pixels).

Link copied to clipboard

Right top corner radius(in pixels).

Functions

Link copied to clipboard
internal fun Paint.getBaseLine(): Float

Return the distance from the text middleline to the baseline.

Link copied to clipboard
internal fun Paint.getTextHeight(): Float

Return the text height.

Link copied to clipboard
fun GradientDrawable.setCornerRadii(@FloatRange(from = 0.0) topLeft: Float, @FloatRange(from = 0.0) topRight: Float, @FloatRange(from = 0.0) bottomLeft: Float, @FloatRange(from = 0.0) bottomRight: Float)

Set specifies radii for each of the 4 corners.

Link copied to clipboard
fun GradientDrawable.setGradient(orientation: GradientDrawable.Orientation, @ColorInt startColor: Int, @ColorInt endColor: Int)
fun GradientDrawable.setGradient(orientation: GradientDrawable.Orientation, @ColorInt startColor: Int, @ColorInt centerColor: Int, @ColorInt endColor: Int)

Set gradient color and gradient orientation.

fun GradientDrawable.setGradient(angle: Int, @ColorInt startColor: Int, @ColorInt endColor: Int): GradientDrawable
fun GradientDrawable.setGradient(angle: Int, @ColorInt startColor: Int, @ColorInt centerColor: Int, @ColorInt endColor: Int)

Set gradient color and gradient angle.

Link copied to clipboard

Set single color to background of GradientDrawable.