-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback,android.view.KeyEvent.Callback,android.view.accessibility.AccessibilityEventSource,androidx.core.view.TintableBackgroundView,androidx.core.widget.TintableImageSourceView,kotlinx.coroutines.CoroutineScope
public final class AvatarView extends AppCompatImageView implements CoroutineScope
AvatarView supports segmented style images, borders, indicators, and initials.
-
-
Field Summary
Fields Modifier and Type Field Description private IntegeravatarBorderWidthprivate IntegeravatarBorderColorprivate IntArrayavatarBorderColorArrayprivate FloatavatarBorderRadiusprivate AvatarShapeavatarShapeprivate StringavatarInitialsprivate IntegeravatarInitialsTextSizeprivate FloatavatarInitialsTextSizeRatioprivate IntegeravatarInitialsTextColorprivate IntegeravatarInitialsStyleprivate IntegeravatarInitialsBackgroundColorprivate BooleanindicatorEnabledprivate IndicatorPositionindicatorPositionprivate IntegerindicatorColorprivate IntegerindicatorBorderColorprivate IntArrayindicatorBorderColorArrayprivate FloatindicatorSizeCriteriaprivate FloatindicatorBorderSizeCriteriaprivate DrawableindicatorDrawableprivate BooleansupportRtlEnabledprivate Drawableplaceholderprivate DrawableerrorPlaceholderprivate IntegermaxSectionSizeprivate final CoroutineContextcoroutineContext
-
Constructor Summary
Constructors Constructor Description AvatarView(Context context, AttributeSet attrs, Integer defStyleAttr)AvatarView(Context context, AttributeSet attrs)AvatarView(Context context)
-
Method Summary
Modifier and Type Method Description final IntegergetAvatarBorderWidth()The border width of AvatarView. final UnitsetAvatarBorderWidth(Integer avatarBorderWidth)The border width of AvatarView. final IntegergetAvatarBorderColor()The border color of AvatarView. final UnitsetAvatarBorderColor(Integer avatarBorderColor)The border color of AvatarView. final IntArraygetAvatarBorderColorArray()The border color array of AvatarView. final UnitsetAvatarBorderColorArray(IntArray avatarBorderColorArray)The border color array of AvatarView. final FloatgetAvatarBorderRadius()The border radius of AvatarView. final UnitsetAvatarBorderRadius(Float avatarBorderRadius)The border radius of AvatarView. final AvatarShapegetAvatarShape()The shape of the AvatarView. final UnitsetAvatarShape(AvatarShape avatarShape)The shape of the AvatarView. final StringgetAvatarInitials()The initials to be drawn instead of an image. final UnitsetAvatarInitials(String avatarInitials)The initials to be drawn instead of an image. final IntegergetAvatarInitialsTextSize()The text size of the initials. final UnitsetAvatarInitialsTextSize(Integer avatarInitialsTextSize)The text size of the initials. final FloatgetAvatarInitialsTextSizeRatio()The text size ratio of the initials. final UnitsetAvatarInitialsTextSizeRatio(Float avatarInitialsTextSizeRatio)The text size ratio of the initials. final IntegergetAvatarInitialsTextColor()The text color of the initials. final UnitsetAvatarInitialsTextColor(Integer avatarInitialsTextColor)The text color of the initials. final IntegergetAvatarInitialsStyle()The text styles color of the initials. final UnitsetAvatarInitialsStyle(Integer avatarInitialsStyle)The text styles color of the initials. final IntegergetAvatarInitialsBackgroundColor()The background color of the initials. final UnitsetAvatarInitialsBackgroundColor(Integer avatarInitialsBackgroundColor)The background color of the initials. final BooleangetIndicatorEnabled()Sets the visibility of the indicator. final UnitsetIndicatorEnabled(Boolean indicatorEnabled)Sets the visibility of the indicator. final IndicatorPositiongetIndicatorPosition()The position of the indicator. final UnitsetIndicatorPosition(IndicatorPosition indicatorPosition)The position of the indicator. final IntegergetIndicatorColor()The color of the indicator. final UnitsetIndicatorColor(Integer indicatorColor)The color of the indicator. final IntegergetIndicatorBorderColor()The border color of the indicator. final UnitsetIndicatorBorderColor(Integer indicatorBorderColor)The border color of the indicator. final IntArraygetIndicatorBorderColorArray()The border color array of the indicator. final UnitsetIndicatorBorderColorArray(IntArray indicatorBorderColorArray)The border color array of the indicator. final FloatgetIndicatorSizeCriteria()The size criteria of the indicator. final UnitsetIndicatorSizeCriteria(Float indicatorSizeCriteria)The size criteria of the indicator. final FloatgetIndicatorBorderSizeCriteria()The border size criteria of the indicator. final UnitsetIndicatorBorderSizeCriteria(Float indicatorBorderSizeCriteria)The border size criteria of the indicator. final DrawablegetIndicatorDrawable()A custom indicator view. final UnitsetIndicatorDrawable(Drawable indicatorDrawable)A custom indicator view. final BooleangetSupportRtlEnabled()Supports RTL layout is enabled or not. final UnitsetSupportRtlEnabled(Boolean supportRtlEnabled)Supports RTL layout is enabled or not. final DrawablegetPlaceholder()A placeholder that should be shown when loading an image. final UnitsetPlaceholder(Drawable placeholder)A placeholder that should be shown when loading an image. final DrawablegetErrorPlaceholder()An error placeholder that should be shown when request failed. final UnitsetErrorPlaceholder(Drawable errorPlaceholder)An error placeholder that should be shown when request failed. final IntegergetMaxSectionSize()The maximum section size of the avatar when loading multiple images. final UnitsetMaxSectionSize(Integer maxSectionSize)CoroutineContextgetCoroutineContext()Internal coroutine scope for AvatarView. final UnitsetIndicatorRes(@DrawableRes() Integer drawableRes)-
Methods inherited from class android.widget.ImageView
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addFocusables, addKeyboardNavigationClusters, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, addTouchables, animate, announceForAccessibility, autofill, autofill, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, checkInputConnectionProxy, clearAnimation, clearFocus, clearViewTranslationCallback, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchCreateViewTranslationRequest, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchGenericFocusedEvent, dispatchGenericMotionEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPointerCaptureChanged, dispatchPopulateAccessibilityEvent, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchScrollCaptureSearch, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, draw, findFocus, findViewById, findViewWithTag, findViewsWithText, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, gatherTransparentRegion, generateDisplayHash, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getContextMenuInfo, getDefaultFocusHighlightEnabled, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverScrollMode, getOverlay, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getReceiveContentMimeTypes, getResources, getRevealOnFocusHint, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootSurfaceControl, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollCaptureHint, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchDelegate, getTouchables, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTranslationResponse, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocus, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOnLongClickListeners, hasPointerCapture, hasTransientState, hasWindowFocus, invalidate, invalidate, invalidate, invalidateOutline, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isPaddingOffsetRequired, isPaddingRelative, isPivotSet, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollContainer, isScrollbarFadingEnabled, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, keyboardNavigationClusterSearch, layout, measure, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onCreateViewTranslationRequest, onCreateVirtualViewTranslationRequests, onDisplayHint, onDragEvent, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onLayout, onOverScrolled, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideStructure, onProvideVirtualStructure, onReceiveContent, onResolvePointerIcon, onRestoreInstanceState, onSaveInstanceState, onScreenStateChanged, onScrollCaptureSearch, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onViewTranslationResponse, onVirtualViewTranslationResponses, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, performReceiveContent, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, requestUnbufferedDispatch, requireViewById, resetPivot, restoreDefaultFocus, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAllowClickWhenDisabled, setAlpha, setAnimation, setAnimationMatrix, setAutofillHints, setAutofillId, setBackground, setBackgroundColor, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnReceiveContentListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRenderEffect, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollBarSize, setScrollBarStyle, setScrollCaptureCallback, setScrollCaptureHint, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setScrollbarFadingEnabled, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setViewTranslationCallback, setWillNotCacheDrawing, setWillNotDraw, setWindowInsetsAnimationCallback, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, willNotCacheDrawing, willNotDraw -
Methods inherited from class androidx.appcompat.widget.AppCompatImageView
animateTransform, clearColorFilter, drawableHotspotChanged, getAccessibilityClassName, getAdjustViewBounds, getBaseline, getBaselineAlignBottom, getColorFilter, getCropToPadding, getDrawable, getImageAlpha, getImageMatrix, getImageTintBlendMode, getImageTintList, getImageTintMode, getMaxHeight, getMaxWidth, getScaleType, invalidateDrawable, isOpaque, jumpDrawablesToCurrentState, onAttachedToWindow, onCreateDrawableState, onRtlPropertiesChanged, onVisibilityAggregated, setAdjustViewBounds, setAlpha, setBaseline, setBaselineAlignBottom, setColorFilter, setColorFilter, setColorFilter, setCropToPadding, setFrame, setImageAlpha, setImageIcon, setImageMatrix, setImageState, setImageTintBlendMode, setImageTintList, setImageTintMode, setMaxHeight, setMaxWidth, setScaleType, setSelected, setVisibility, verifyDrawable -
Methods inherited from class io.getstream.avatarview.AvatarView
drawableStateChanged, getSupportBackgroundTintList, getSupportBackgroundTintMode, getSupportImageTintList, getSupportImageTintMode, hasOverlappingRendering, setBackgroundDrawable, setBackgroundResource, setImageBitmap, setImageDrawable, setImageLevel, setImageResource, setImageURI, setSupportBackgroundTintList, setSupportBackgroundTintMode, setSupportImageTintList, setSupportImageTintMode -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AvatarView
AvatarView(Context context, AttributeSet attrs, Integer defStyleAttr)
-
AvatarView
AvatarView(Context context, AttributeSet attrs)
-
AvatarView
AvatarView(Context context)
-
-
Method Detail
-
getAvatarBorderWidth
@Px() final Integer getAvatarBorderWidth()
The border width of AvatarView.
-
setAvatarBorderWidth
final Unit setAvatarBorderWidth(Integer avatarBorderWidth)
The border width of AvatarView.
-
getAvatarBorderColor
@ColorInt() final Integer getAvatarBorderColor()
The border color of AvatarView.
-
setAvatarBorderColor
final Unit setAvatarBorderColor(Integer avatarBorderColor)
The border color of AvatarView.
-
getAvatarBorderColorArray
final IntArray getAvatarBorderColorArray()
The border color array of AvatarView.
-
setAvatarBorderColorArray
final Unit setAvatarBorderColorArray(IntArray avatarBorderColorArray)
The border color array of AvatarView.
-
getAvatarBorderRadius
@Px() final Float getAvatarBorderRadius()
The border radius of AvatarView.
-
setAvatarBorderRadius
final Unit setAvatarBorderRadius(Float avatarBorderRadius)
The border radius of AvatarView.
-
getAvatarShape
final AvatarShape getAvatarShape()
The shape of the AvatarView.
-
setAvatarShape
final Unit setAvatarShape(AvatarShape avatarShape)
The shape of the AvatarView.
-
getAvatarInitials
final String getAvatarInitials()
The initials to be drawn instead of an image.
-
setAvatarInitials
final Unit setAvatarInitials(String avatarInitials)
The initials to be drawn instead of an image.
-
getAvatarInitialsTextSize
@Px() final Integer getAvatarInitialsTextSize()
The text size of the initials.
-
setAvatarInitialsTextSize
final Unit setAvatarInitialsTextSize(Integer avatarInitialsTextSize)
The text size of the initials.
-
getAvatarInitialsTextSizeRatio
@FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble()) final Float getAvatarInitialsTextSizeRatio()
The text size ratio of the initials.
-
setAvatarInitialsTextSizeRatio
final Unit setAvatarInitialsTextSizeRatio(Float avatarInitialsTextSizeRatio)
The text size ratio of the initials.
-
getAvatarInitialsTextColor
@ColorInt() final Integer getAvatarInitialsTextColor()
The text color of the initials.
-
setAvatarInitialsTextColor
final Unit setAvatarInitialsTextColor(Integer avatarInitialsTextColor)
The text color of the initials.
-
getAvatarInitialsStyle
final Integer getAvatarInitialsStyle()
The text styles color of the initials.
-
setAvatarInitialsStyle
final Unit setAvatarInitialsStyle(Integer avatarInitialsStyle)
The text styles color of the initials.
-
getAvatarInitialsBackgroundColor
@ColorInt() final Integer getAvatarInitialsBackgroundColor()
The background color of the initials.
-
setAvatarInitialsBackgroundColor
final Unit setAvatarInitialsBackgroundColor(Integer avatarInitialsBackgroundColor)
The background color of the initials.
-
getIndicatorEnabled
final Boolean getIndicatorEnabled()
Sets the visibility of the indicator.
-
setIndicatorEnabled
final Unit setIndicatorEnabled(Boolean indicatorEnabled)
Sets the visibility of the indicator.
-
getIndicatorPosition
final IndicatorPosition getIndicatorPosition()
The position of the indicator.
-
setIndicatorPosition
final Unit setIndicatorPosition(IndicatorPosition indicatorPosition)
The position of the indicator.
-
getIndicatorColor
@ColorInt() final Integer getIndicatorColor()
The color of the indicator.
-
setIndicatorColor
final Unit setIndicatorColor(Integer indicatorColor)
The color of the indicator.
-
getIndicatorBorderColor
@ColorInt() final Integer getIndicatorBorderColor()
The border color of the indicator.
-
setIndicatorBorderColor
final Unit setIndicatorBorderColor(Integer indicatorBorderColor)
The border color of the indicator.
-
getIndicatorBorderColorArray
final IntArray getIndicatorBorderColorArray()
The border color array of the indicator.
-
setIndicatorBorderColorArray
final Unit setIndicatorBorderColorArray(IntArray indicatorBorderColorArray)
The border color array of the indicator.
-
getIndicatorSizeCriteria
final Float getIndicatorSizeCriteria()
The size criteria of the indicator.
-
setIndicatorSizeCriteria
final Unit setIndicatorSizeCriteria(Float indicatorSizeCriteria)
The size criteria of the indicator.
-
getIndicatorBorderSizeCriteria
final Float getIndicatorBorderSizeCriteria()
The border size criteria of the indicator. This must be bigger than the indicatorSizeCriteria.
-
setIndicatorBorderSizeCriteria
final Unit setIndicatorBorderSizeCriteria(Float indicatorBorderSizeCriteria)
The border size criteria of the indicator. This must be bigger than the indicatorSizeCriteria.
-
getIndicatorDrawable
final Drawable getIndicatorDrawable()
A custom indicator view.
-
setIndicatorDrawable
final Unit setIndicatorDrawable(Drawable indicatorDrawable)
A custom indicator view.
-
getSupportRtlEnabled
final Boolean getSupportRtlEnabled()
Supports RTL layout is enabled or not.
-
setSupportRtlEnabled
final Unit setSupportRtlEnabled(Boolean supportRtlEnabled)
Supports RTL layout is enabled or not.
-
getPlaceholder
final Drawable getPlaceholder()
A placeholder that should be shown when loading an image.
-
setPlaceholder
final Unit setPlaceholder(Drawable placeholder)
A placeholder that should be shown when loading an image.
-
getErrorPlaceholder
final Drawable getErrorPlaceholder()
An error placeholder that should be shown when request failed.
-
setErrorPlaceholder
final Unit setErrorPlaceholder(Drawable errorPlaceholder)
An error placeholder that should be shown when request failed.
-
getMaxSectionSize
final Integer getMaxSectionSize()
The maximum section size of the avatar when loading multiple images. This size must between 1 and 4.
-
setMaxSectionSize
final Unit setMaxSectionSize(Integer maxSectionSize)
-
getCoroutineContext
CoroutineContext getCoroutineContext()
Internal coroutine scope for AvatarView.
-
setIndicatorRes
final Unit setIndicatorRes(@DrawableRes() Integer drawableRes)
-
-
-
-