belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
ImageViewCompat
public
class
ImageViewCompat
extends Object
java.lang.Object | |
↳ | android.support.v4.widget.ImageViewCompat |
Helper for accessing features in ImageView
.
Summary
Public methods | |
---|---|
static
ColorStateList
|
getImageTintList(ImageView view)
Return the tint applied to the image drawable, if specified. |
static
PorterDuff.Mode
|
getImageTintMode(ImageView view)
Return the blending mode used to apply the tint to the image drawable, if specified. |
static
void
|
setImageTintList(ImageView view, ColorStateList tintList)
Applies a tint to the image drawable. |
static
void
|
setImageTintMode(ImageView view, PorterDuff.Mode mode)
Specifies the blending mode used to apply the tint specified by
|
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public methods
getImageTintList
ColorStateList getImageTintList (ImageView view)
Return the tint applied to the image drawable, if specified.
Parameters | |
---|---|
view |
ImageView |
Returns | |
---|---|
ColorStateList |
getImageTintMode
PorterDuff.Mode getImageTintMode (ImageView view)
Return the blending mode used to apply the tint to the image drawable, if specified.
Parameters | |
---|---|
view |
ImageView |
Returns | |
---|---|
PorterDuff.Mode |
setImageTintList
void setImageTintList (ImageView view, ColorStateList tintList)
Applies a tint to the image drawable.
Parameters | |
---|---|
view |
ImageView |
tintList |
ColorStateList |
setImageTintMode
void setImageTintMode (ImageView view, PorterDuff.Mode mode)
Specifies the blending mode used to apply the tint specified by
setImageTintList(android.widget.ImageView, android.content.res.ColorStateList)
to the image drawable. The default mode is SRC_IN
.
Parameters | |
---|---|
view |
ImageView |
mode |
PorterDuff.Mode |
Interfaces
Classes
- AutoScrollHelper
- CircularProgressDrawable
- CompoundButtonCompat
- ContentLoadingProgressBar
- CursorAdapter
- DrawerLayout
- DrawerLayout.LayoutParams
- DrawerLayout.SavedState
- DrawerLayout.SimpleDrawerListener
- EdgeEffectCompat
- ExploreByTouchHelper
- ImageViewCompat
- ListPopupWindowCompat
- ListViewAutoScrollHelper
- ListViewCompat
- NestedScrollView
- PopupMenuCompat
- PopupWindowCompat
- ResourceCursorAdapter
- ScrollerCompat
- SimpleCursorAdapter
- SlidingPaneLayout
- SlidingPaneLayout.LayoutParams
- SlidingPaneLayout.SimplePanelSlideListener
- Space
- SwipeRefreshLayout
- TextViewCompat
- ViewDragHelper
- ViewDragHelper.Callback