B4A Class Round Button

First of all I am sorry this is a classic example of taking something simple and making it complex. I am trying to learn a bit more about classes so I wrote this little class for my own use. I am putting it up for others trying to learn. It is added in designer as a customView like a regular button. It has a ripple effect. There are a few things you can change in code like text, text size, text color, back color.....you might not use them but they work. I have used some code I got from the forum thanks to the contributors. It is a flat design similar to Material design. I just had a bit of fun.....enjoy.
 

Attachments

  • rndButton.zip
    8.6 KB · Views: 404

somed3v3loper

Well-Known Member
Licensed User
Longtime User
The follwing sub does not work
B4X:
Sub rippleColor(rc As Int)
rv.Ripple(True, rc, 150, True, 1)
End Sub
RippleViews do not have Ripple member
 

tremara1

Active Member
Licensed User
Longtime User
I was able to call this member with no error as per the attached pic.
 

Attachments

  • Ashampoo_Snap_2014.11.30_07h37m09s_001_.png
    Ashampoo_Snap_2014.11.30_07h37m09s_001_.png
    19.8 KB · Views: 322

tremara1

Active Member
Licensed User
Longtime User
You are correct I should have specified the correct version....also a good chance to thank Erel and Informatix for the work.
 
Last edited:
Top