java.lang.Object | ||
↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
↳ | com.facebook.drawee.generic.RoundingParams.RoundingMethod |
Enum Values | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
RoundingParams.RoundingMethod | BITMAP_ONLY | Uses BitmapShader to draw the bitmap with rounded corners. | |||||||||
RoundingParams.RoundingMethod | OVERLAY_COLOR | Draws rounded corners on top of the underlying drawable by overlaying a solid color which
is specified by setOverlayColor . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static RoundingParams.RoundingMethod | valueOf(String name) | ||||||||||
final static RoundingMethod[] | values() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Uses BitmapShader to draw the bitmap with rounded corners. This is the default rounding
method. It doesn't support animations, and it does not support any scale types other than
CENTER_CROP
, FOCUS_CROP
and
FIT_XY
.
If you use this rounding method with other scale types, such as
CENTER
, you won't get an Exception but the image might look
wrong (e.g. repeated edges), especially in cases the source image is smaller than the view.
Draws rounded corners on top of the underlying drawable by overlaying a solid color which
is specified by setOverlayColor
. This option should only be used when the
background beneath the underlying drawable is static and of the same solid color.