update Badge Bounds
open fun updateBadgeBounds(@NonNull rect: Rect, centerX: Float, centerY: Float, halfWidth: Float, halfHeight: Float)
Updates a badge's bounds using its center coordinate, halfWidth
and halfHeight
.
Parameters
rect
Holds rectangular coordinates of the badge's bounds.
center X
A badge's center x coordinate.
center Y
A badge's center y coordinate.
half Width
Half of a badge's width.
half Height
Half of a badge's height.