On the dialer app of Android, when you start searching for something, and you click the arrow button on the left of the EditText, you get a circular ripple
In Kotlin / Java you can do the following
fun View.applyCircularRippleEffect() {
val backgroundResId = context.getResource(android.R.attr.actionBarItemBackground)
if (backgroundResId != 0) {
setBackgroundResource(backgroundResId)
isClickable = true
isFocusable = true
}
}
// getResource extension
fun Context.getResource(resourceId: Int): Int {
val out = TypedValue()
theme.resolveAttribute(resourceId, out, true)
return out.resourceId
}