Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db59530c authored by Alan Viverette's avatar Alan Viverette Committed by android-build-merger
Browse files

Better docs for ImageView legacy tint

am: 2b4e14cf

Change-Id: I72f67ee9c67501ba9ea827f0068186673f59d852
parents 7c2496ea 2b4e14cf
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -545,6 +545,13 @@ public class ImageView extends View {
     * Subsequent calls to {@link #setImageDrawable(Drawable)} will automatically
     * mutate the drawable and apply the specified tint and tint mode using
     * {@link Drawable#setTintList(ColorStateList)}.
     * <p>
     * <em>Note:</em> The default tint mode used by this setter is NOT
     * consistent with the default tint mode used by the
     * {@link android.R.styleable#ImageView_tint android:tint}
     * attribute. If the {@code android:tint} attribute is specified, the
     * default tint mode will be set to {@link PorterDuff.Mode#SRC_ATOP} to
     * ensure consistency with earlier versions of the platform.
     *
     * @param tint the tint to apply, may be {@code null} to clear tint
     *
+4 −1
Original line number Diff line number Diff line
@@ -3790,7 +3790,10 @@ i
        <!-- An optional argument to supply a maximum height for this view.
             See {see android.widget.ImageView#setMaxHeight} for details. -->
        <attr name="maxHeight" format="dimension" />
        <!-- Set a tinting color for the image. By default, the tint will blend using SRC_ATOP mode. -->
        <!-- The tinting color for the image. By default, the tint will blend using SRC_ATOP mode.
             Please note that for compatibility reasons, this is NOT consistent with the default
             SRC_IN tint mode used by {@link android.widget.ImageView#setImageTintList} and by
             similar tint attributes on other views. -->
        <attr name="tint" format="color" />
        <!-- If true, the image view will be baseline aligned with based on its
             bottom edge. -->