SetRipple(b.Parent)
ActivateRipple(b.Parent,3000, b.Top +b.Height/2)
Sub ActivateRipple(btn As View,x As Float, y As Float)
If GetType(btn.Background) = "android.graphics.drawable.RippleDrawable" Then
Dim jo As JavaObject = btn.Background
jo.RunMethod("setHotspot", Array(x, y))
Dim sd As StateListDrawable 'ignore
jo.RunMethod("setState", Array(Array As Int(sd.State_Pressed, sd.State_Enabled)))
' Sleep(200)
jo.RunMethod("setState", Array(Array As Int(sd.State_Enabled)))
End If
End Sub