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

Commit d6a8f14a authored by Stevie Kideckel's avatar Stevie Kideckel Committed by Android (Google) Code Review
Browse files

Merge "Add the android:clipToOutline attribute for views." into sc-dev

parents 0170af7b ca127732
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -435,6 +435,7 @@ package android {
    field public static final int clickable = 16842981; // 0x10100e5
    field public static final int clipChildren = 16842986; // 0x10100ea
    field public static final int clipOrientation = 16843274; // 0x101020a
    field public static final int clipToOutline = 16844328; // 0x1010628
    field public static final int clipToPadding = 16842987; // 0x10100eb
    field public static final int closeIcon = 16843905; // 0x1010481
    field @Deprecated public static final int codes = 16843330; // 0x1010242
+6 −0
Original line number Diff line number Diff line
@@ -740,6 +740,7 @@ import java.util.function.Predicate;
 * @attr ref android.R.styleable#View_alpha
 * @attr ref android.R.styleable#View_background
 * @attr ref android.R.styleable#View_clickable
 * @attr ref android.R.styleable#View_clipToOutline
 * @attr ref android.R.styleable#View_contentDescription
 * @attr ref android.R.styleable#View_drawingCacheQuality
 * @attr ref android.R.styleable#View_duplicateParentState
@@ -5968,6 +5969,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
                case R.styleable.View_scrollCaptureHint:
                    setScrollCaptureHint((a.getInt(attr, SCROLL_CAPTURE_HINT_AUTO)));
                    break;
                case R.styleable.View_clipToOutline:
                    setClipToOutline(a.getBoolean(attr, false));
                    break;
            }
        }
@@ -17921,6 +17925,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     *
     * @see #setOutlineProvider(ViewOutlineProvider)
     * @see #getClipToOutline()
     *
     * @attr ref android.R.styleable#View_clipToOutline
     */
    @RemotableViewMethod
    public void setClipToOutline(boolean clipToOutline) {
+10 −0
Original line number Diff line number Diff line
@@ -3251,6 +3251,16 @@
             a value of 'true' will not override any 'false' value in its parent chain nor will
             it prevent any 'false' in any of its children. -->
        <attr name="forceDarkAllowed" format="boolean" />
        <!-- <p>Whether the View's Outline should be used to clip the contents of the View.
             <p>Only a single non-rectangular clip can be applied on a View at any time. Circular
             clips from a
             {@link android.view.ViewAnimationUtils#createCircularReveal(View, int, int, float,
             float)} circular reveal animation take priority over Outline clipping, and child
             Outline clipping takes priority over Outline clipping done by a parent.
             <p>Note that this flag will only be respected if the View's Outline returns true from
             {@link android.graphics.Outline#canClip()}. -->
        <attr name="clipToOutline" format="boolean" />
    </declare-styleable>
    <!-- Attributes that can be assigned to a tag for a particular View. -->
+1 −0
Original line number Diff line number Diff line
@@ -3062,6 +3062,7 @@
    <!-- @hide @SystemApi -->
    <public name="hotwordDetectionService" />
    <public name="previewLayout" />
    <public name="clipToOutline" />
  </public-group>

  <public-group type="drawable" first-id="0x010800b5">