AvatarGroup

class AvatarGroup @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.Default_AvatarGroup_Style, @StyleRes defStyleRes: Int = R.style.BaseAvatarGroup) : ViewGroup

AvatarGroup.

Since

0.5.4

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.Default_AvatarGroup_Style, @StyleRes defStyleRes: Int = R.style.BaseAvatarGroup)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
annotation class OverlapFrom

Properties

Link copied to clipboard

The avatar size of avatar.

Link copied to clipboard

The corner radius of avatar when the shape is SHAPE_ROUND_CORNER.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private val mDefaultTextSize: Float
Link copied to clipboard

The length of the overlap between two avatars.

Link copied to clipboard

The avatar overlay method.

Link copied to clipboard
var mShape: Int

The Shape of avatar. Current support circle and round rectangle.

Link copied to clipboard

The stroke width of avatar.

Link copied to clipboard

The text size shown when the avatar image is null.

Functions

Link copied to clipboard
protected open override fun onLayout(changed: Boolean, l: Int, t: Int, r: Int, b: Int)
Link copied to clipboard
protected open override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int)
Link copied to clipboard
fun setAvatarSize(@FloatRange(from = 0.0) size: Float)

Set size for each avatar. At the same time, mOverlapDistance will be adjusted to ensure that its length is reasonable.

Link copied to clipboard
fun setOverlapDistance(@FloatRange(from = 0.0) distance: Float)

Set the length of the overlap between two avatars.

Link copied to clipboard
fun setOverlapFrom(overlapFrom: Int)
Link copied to clipboard
fun setShape(shape: Int)

Set mode.