Android Code Snippet Create Ripple effect inside Panel

Hi All,

This code snippet base on a question here, i have never deal with Canvas/B4XCanvas before, but can't sleep thinking that i have idea how to solve the question but all reference i read should be using canvas. So here we go...

ripple.gif


I hope everyone find it useful.

Thank you
 

Attachments

my humble comment:

Better to create a custom XUI view with your code, to control the properties of the view.

such as: corner radius value, color, text, gradient, border, etc.

example:
SwiftButton

regards,
 
Better to create a custom XUI
Please take a look here
 
Back
Top