sesl.androidx
Toggle table of contents
main
Platform filter
main
Switch theme
Search in API
sesl.androidx
preference
/
androidx.preference.internal
/
PreferenceImageView
Preference
Image
View
@
RestrictTo
(
value
=
LIBRARY_GROUP_PREFIX
)
open
class
PreferenceImageView
:
ImageView
(
source
)
Extension of
ImageView
that correctly applies maxWidth and maxHeight. Used by Car.
Members
Constructors
Preference
Image
View
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
get
Max
Height
Link copied to clipboard
open
fun
getMaxHeight
(
)
:
Int
get
Max
Width
Link copied to clipboard
open
fun
getMaxWidth
(
)
:
Int
set
Max
Height
Link copied to clipboard
open
fun
setMaxHeight
(
maxHeight
:
Int
)
set
Max
Width
Link copied to clipboard
open
fun
setMaxWidth
(
maxWidth
:
Int
)