RippleDrawable mask color, what is it for?

后端 未结 1 729
醉梦人生
醉梦人生 2021-01-01 18:45

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 conta

1条回答
  •  有刺的猬
    2021-01-01 19:24

    Using an opaque color for your mask -- whether that's @android:color/white, #ff000000, or #ff123456 doesn't matter -- means you are masking against a fully opaque rectangle that is the same size as your drawable. It's the most efficient rendering path for ripple masks.

    0 讨论(0)
提交回复
热议问题