diff options
Diffstat (limited to 'library/src/main/kotlin/ca/allanwang/kau/views/SimpleRippleDrawable.kt')
-rw-r--r-- | library/src/main/kotlin/ca/allanwang/kau/views/SimpleRippleDrawable.kt | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/library/src/main/kotlin/ca/allanwang/kau/views/SimpleRippleDrawable.kt b/library/src/main/kotlin/ca/allanwang/kau/views/SimpleRippleDrawable.kt deleted file mode 100644 index df842f6..0000000 --- a/library/src/main/kotlin/ca/allanwang/kau/views/SimpleRippleDrawable.kt +++ /dev/null @@ -1,19 +0,0 @@ -package ca.allanwang.kau.views - -import android.content.res.ColorStateList -import android.graphics.drawable.ColorDrawable -import android.graphics.drawable.RippleDrawable -import android.support.annotation.ColorInt -import ca.allanwang.kau.utils.adjustAlpha - -/** - * Created by Allan Wang on 2017-06-24. - * - * Tries to mimic a standard ripple, given the foreground and background colors - */ -fun createSimpleRippleDrawable(@ColorInt foregroundColor: Int, @ColorInt backgroundColor: Int): RippleDrawable { - val states = ColorStateList(arrayOf(intArrayOf()), intArrayOf(foregroundColor)) - val content = ColorDrawable(backgroundColor) - val mask = ColorDrawable(foregroundColor.adjustAlpha(0.16f)) - return RippleDrawable(states, content, mask) -}
\ No newline at end of file |