ShapeableImageView

An ImageView that draws the bitmap with the provided Shape.

Constructors

Link copied to clipboard
constructor(context: Context)
constructor(context: Context, @Nullable attrs: AttributeSet)
constructor(context: Context, @Nullable attrs: AttributeSet, defStyle: Int)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
The additional padding on the bottom of the image, which is not applied to the background.
Link copied to clipboard
The additional relative padding on the end of the image, which is not applied to the background.
Link copied to clipboard
The additional padding on the left of the image, which is not applied to the background.
Link copied to clipboard
The additional padding on the right of the image, which is not applied to the background.
Link copied to clipboard
The additional relative padding on the start of the image, which is not applied to the background.
Link copied to clipboard
The additional padding on the top of the image, which is not applied to the background.
Link copied to clipboard
The padding on the bottom of the View, applied to both the image and the background.
Link copied to clipboard
The relative padding on the end of the View, applied to both the image and the background.
Link copied to clipboard
The padding on the left of the View, applied to both the image and the background.
Link copied to clipboard
The padding on the right of the View, applied to both the image and the background.
Link copied to clipboard
The relative padding on the start of the View, applied to both the image and the background.
Link copied to clipboard
The padding on the top of the View, applied to both the image and the background.
Link copied to clipboard
open fun setContentPadding(@Dimension left: Int, @Dimension top: Int, @Dimension right: Int, @Dimension bottom: Int)
Set additional padding on the image that is not applied to the background.
Link copied to clipboard
@RequiresApi(value = 17)
open fun setContentPaddingRelative(@Dimension start: Int, @Dimension top: Int, @Dimension end: Int, @Dimension bottom: Int)
Set additional relative padding on the image that is not applied to the background.
Link copied to clipboard
open fun setPadding(@Dimension left: Int, @Dimension top: Int, @Dimension right: Int, @Dimension bottom: Int)
Set the padding.
Link copied to clipboard
open fun setPaddingRelative(@Dimension start: Int, @Dimension top: Int, @Dimension end: Int, @Dimension bottom: Int)
Set the relative padding.
Link copied to clipboard
open fun setStrokeColorResource(@ColorRes strokeColorResourceId: Int)
Sets the stroke color resource for this ImageView.
Link copied to clipboard
open fun setStrokeWidthResource(@DimenRes strokeWidthResourceId: Int)
Sets the stroke width dimension resource for this ImageView.