PreferenceImageView

Extension of ImageView that correctly applies maxWidth and maxHeight. Used by Car.

Constructors

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

Functions

Link copied to clipboard
open fun getMaxHeight(): Int
Link copied to clipboard
open fun getMaxWidth(): Int
Link copied to clipboard
open fun setMaxHeight(maxHeight: Int)
Link copied to clipboard
open fun setMaxWidth(maxWidth: Int)