RippleDrawable mask color, what is it for?
问题 In referring to the RippleDrawable for Android L, https://developer.android.com/reference/android/graphics/drawable/RippleDrawable.html, there's a way to mask away to contain the ripple effect within the view. The masking is done as <ripple android:color="#ff0000ff"> <item android:drawable="@drawable/white" /> </ripple> We could also mask it using <ripple android:color="#ff0000ff"> <item android:drawable="@drawable/black" /> </ripple> As mentioned in the document, the mask layer is not drawn