From 10f93838bbce3a94f75dd4bcea3b5f42cfdde42a Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Wed, 10 Mar 2021 10:13:20 -0800 Subject: Hide ripple style APIs UX decided that there should only be 1 ripple style in the system. Bug: 167177623 Test: make Test: cts Change-Id: I6483f58d9c8333aad37308a8de903a8f59150870 --- .../java/android/graphics/drawable/RippleDrawable.java | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'graphics/java/android') diff --git a/graphics/java/android/graphics/drawable/RippleDrawable.java b/graphics/java/android/graphics/drawable/RippleDrawable.java index 7fd3cdc39cc7..d6bbee90d73b 100644 --- a/graphics/java/android/graphics/drawable/RippleDrawable.java +++ b/graphics/java/android/graphics/drawable/RippleDrawable.java @@ -110,17 +110,6 @@ import java.util.Arrays; * * * @attr ref android.R.styleable#RippleDrawable_color - * - * To change the ripple style, assign the value of "solid" or "patterned" to the android:rippleStyle - * attribute. - * - *
- * <!-- A red ripple masked against an opaque rectangle. --/>
- * <ripple android:rippleStyle="patterned">
- * </ripple>
- * 
- * - * @attr ref android.R.styleable#RippleDrawable_rippleStyle */ public class RippleDrawable extends LayerDrawable { /** @@ -132,12 +121,14 @@ public class RippleDrawable extends LayerDrawable { /** * Ripple style where a solid circle is drawn. This is also the default style * @see #setRippleStyle(int) + * @hide */ public static final int STYLE_SOLID = 0; /** * Ripple style where a circle shape with a patterned, * noisy interior expands from the hotspot to the bounds". * @see #setRippleStyle(int) + * @hide */ public static final int STYLE_PATTERNED = 1; @@ -1248,6 +1239,7 @@ public class RippleDrawable extends LayerDrawable { * @see #STYLE_PATTERNED * * @param style The style of the ripple + * @hide */ public void setRippleStyle(@RippleStyle int style) throws IllegalArgumentException { if (style == STYLE_SOLID || style == STYLE_PATTERNED) { @@ -1260,6 +1252,7 @@ public class RippleDrawable extends LayerDrawable { /** * Get the current ripple style * @return Ripple style + * @hide */ public @RippleStyle int getRippleStyle() { return mState.mRippleStyle; -- cgit v1.2.3-59-g8ed1b