Package-level declarations
Types
Link copied to clipboard
Merge position when using BmpUtils.mergeBitmap.
Link copied to clipboard
Merge scale when using BmpUtils.mergeBitmapLR and BmpUtils.mergeBitmapTB.
Properties
Functions
Link copied to clipboard
Convert angle to GradientDrawable.Orientation.
Link copied to clipboard
Return the distance from the text middleline to the baseline.
Link copied to clipboard
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.