belongs to Maven artifact com.android.support:appcompat-v7:28.0.0-alpha1
AppCompatImageView
public
class
AppCompatImageView
extends ImageView
implements
TintableBackgroundView
java.lang.Object | |||
↳ | android.view.View | ||
↳ | android.widget.ImageView | ||
↳ | android.support.v7.widget.AppCompatImageView |
A ImageView
which supports compatible features on older versions of the platform,
including:
- Allows dynamic tint of its background via the background tint methods in
ViewCompat
. - Allows setting of the background tint using
backgroundTint
andbackgroundTintMode
. - Allows dynamic tint of its image via the image tint methods in
ImageViewCompat
. - Allows setting of the image tint using
tint
andtintMode
.
This will automatically be used when you use ImageView
in your layouts
and the top-level activity / dialog is provided by
appcompat.
You should only need to manually use this class when writing custom views.
Summary
XML attributes | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AppCompatImageView_srcCompat |
Inherited fields | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
android.view.View
|