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

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

Better docs for ImageView legacy tint am: 2b4e14cf

am: db59530c

Change-Id: Ib5f5a59b041e10a1109fb01f18a64d24afdde3f8
parents f573b320 db59530c
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
@@ -3792,7 +3792,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. -->