Loading core/java/android/widget/ImageView.java +4 −5 Original line number Original line Diff line number Diff line Loading @@ -173,12 +173,11 @@ public class ImageView extends View { mDrawableTintList = a.getColorStateList(R.styleable.ImageView_tint); mDrawableTintList = a.getColorStateList(R.styleable.ImageView_tint); mHasDrawableTint = true; mHasDrawableTint = true; // Prior to L, the tint mode was always SRC_ATOP. // Prior to L, this attribute would always set a color filter with if (mContext.getApplicationInfo().targetSdkVersion <= Build.VERSION_CODES.L) { // blending mode SRC_ATOP. Preserve that default behavior. mDrawableTintMode = PorterDuff.Mode.SRC_ATOP; mDrawableTintMode = PorterDuff.Mode.SRC_ATOP; mHasDrawableTintMode = true; mHasDrawableTintMode = true; } } } if (a.hasValue(R.styleable.ImageView_tintMode)) { if (a.hasValue(R.styleable.ImageView_tintMode)) { mDrawableTintMode = Drawable.parseTintMode(a.getInt( mDrawableTintMode = Drawable.parseTintMode(a.getInt( Loading core/res/res/values/attrs.xml +1 −1 Original line number Original line Diff line number Diff line Loading @@ -3446,7 +3446,7 @@ <!-- An optional argument to supply a maximum height for this view. <!-- An optional argument to supply a maximum height for this view. See {see android.widget.ImageView#setMaxHeight} for details. --> See {see android.widget.ImageView#setMaxHeight} for details. --> <attr name="maxHeight" format="dimension" /> <attr name="maxHeight" format="dimension" /> <!-- Set a tinting color for the image. --> <!-- Set a tinting color for the image. By default, the tint will blend using SRC_ATOP mode. --> <attr name="tint" format="color" /> <attr name="tint" format="color" /> <!-- If true, the image view will be baseline aligned with based on its <!-- If true, the image view will be baseline aligned with based on its bottom edge. --> bottom edge. --> Loading Loading
core/java/android/widget/ImageView.java +4 −5 Original line number Original line Diff line number Diff line Loading @@ -173,12 +173,11 @@ public class ImageView extends View { mDrawableTintList = a.getColorStateList(R.styleable.ImageView_tint); mDrawableTintList = a.getColorStateList(R.styleable.ImageView_tint); mHasDrawableTint = true; mHasDrawableTint = true; // Prior to L, the tint mode was always SRC_ATOP. // Prior to L, this attribute would always set a color filter with if (mContext.getApplicationInfo().targetSdkVersion <= Build.VERSION_CODES.L) { // blending mode SRC_ATOP. Preserve that default behavior. mDrawableTintMode = PorterDuff.Mode.SRC_ATOP; mDrawableTintMode = PorterDuff.Mode.SRC_ATOP; mHasDrawableTintMode = true; mHasDrawableTintMode = true; } } } if (a.hasValue(R.styleable.ImageView_tintMode)) { if (a.hasValue(R.styleable.ImageView_tintMode)) { mDrawableTintMode = Drawable.parseTintMode(a.getInt( mDrawableTintMode = Drawable.parseTintMode(a.getInt( Loading
core/res/res/values/attrs.xml +1 −1 Original line number Original line Diff line number Diff line Loading @@ -3446,7 +3446,7 @@ <!-- An optional argument to supply a maximum height for this view. <!-- An optional argument to supply a maximum height for this view. See {see android.widget.ImageView#setMaxHeight} for details. --> See {see android.widget.ImageView#setMaxHeight} for details. --> <attr name="maxHeight" format="dimension" /> <attr name="maxHeight" format="dimension" /> <!-- Set a tinting color for the image. --> <!-- Set a tinting color for the image. By default, the tint will blend using SRC_ATOP mode. --> <attr name="tint" format="color" /> <attr name="tint" format="color" /> <!-- If true, the image view will be baseline aligned with based on its <!-- If true, the image view will be baseline aligned with based on its bottom edge. --> bottom edge. --> Loading