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

Commit 253331c0 authored by Alan Viverette's avatar Alan Viverette
Browse files

Clarify interaction between setPivot() and setPivotRelative()

Change-Id: I108df5170f702b4938b4fe7fa35ed42d4a8a2d5d
parent b7915175
Loading
Loading
Loading
Loading
+12 −8
Original line number Diff line number Diff line
@@ -204,11 +204,13 @@ public class RotateDrawable extends DrawableWrapper {

    /**
     * Sets the X position around which the drawable is rotated.
     * <p>
     * If the X pivot is relative (as specified by
     * {@link #setPivotXRelative(boolean)}), then the position represents a
     * fraction of the drawable width. Otherwise, the position represents an
     * absolute value in pixels.
     *
     * @param pivotX X position around which to rotate. If the X pivot is
     *            relative, the position represents a fraction of the drawable
     *            width. Otherwise, the position represents an absolute value in
     *            pixels.
     * @param pivotX X position around which to rotate
     * @see #setPivotXRelative(boolean)
     * @attr ref android.R.styleable#RotateDrawable_pivotX
     */
@@ -254,11 +256,13 @@ public class RotateDrawable extends DrawableWrapper {

    /**
     * Sets the Y position around which the drawable is rotated.
     * <p>
     * If the Y pivot is relative (as specified by
     * {@link #setPivotYRelative(boolean)}), then the position represents a
     * fraction of the drawable height. Otherwise, the position represents an
     * absolute value in pixels.
     *
     * @param pivotY Y position around which to rotate. If the Y pivot is
     *            relative, the position represents a fraction of the drawable
     *            height. Otherwise, the position represents an absolute value
     *            in pixels.
     * @param pivotY Y position around which to rotate
     * @see #getPivotY()
     * @attr ref android.R.styleable#RotateDrawable_pivotY
     */